Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/auth.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{hint::black_box, io::Read};

use axum::{headers::Authorization, TypedHeader};
use axum::{TypedHeader, headers::Authorization};
use http::HeaderValue;
use sha2::Digest;

Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use axum::response::IntoResponse;
use cfg::Config;
use clap::Parser;

use axum::routing::{get, put};
use axum::Router;
use axum::routing::{get, put};
use db::Database;

#[tokio::main]
Expand Down Expand Up @@ -83,13 +83,13 @@ where
api_key: Option<String>,
}

use crate::auth::{accept_auth, ApiKey};
use crate::auth::{ApiKey, accept_auth};

use axum::extract::{Path, State};
use axum::headers::Authorization;
use axum::Json;
use axum::TypedHeader;
use http::{header, StatusCode};
use axum::extract::{Path, State};
use axum::headers::Authorization;
use http::{StatusCode, header};
use std::collections::HashSet;

async fn get_ns(path: Path<String>, state: State<AppState<impl Database>>) -> impl IntoResponse {
Expand Down
Loading