Fix compilation errors: Resolve utoipa derive issues, add time dependency, and correct Axum middleware signature
Some checks failed
Build MIPS Binary / build (push) Has been cancelled

This commit is contained in:
spinline
2026-02-07 15:08:53 +03:00
parent bb3ec14a75
commit 472bac85f3
5 changed files with 22 additions and 6 deletions

View File

@@ -12,9 +12,8 @@ use axum::{
routing::{get, post},
Router,
middleware::{self, Next},
extract::Request,
response::Response,
http::StatusCode,
http::{StatusCode, Request},
body::Body,
};
use axum_extra::extract::cookie::CookieJar;
@@ -47,7 +46,7 @@ pub struct AppState {
async fn auth_middleware(
state: axum::extract::State<AppState>,
jar: CookieJar,
request: Request<Body>,
request: Request,
next: Next,
) -> Result<Response, StatusCode> {
// Skip auth for public paths
@@ -72,7 +71,6 @@ async fn auth_middleware(
Err(StatusCode::UNAUTHORIZED)
}
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Args {