path name fix
Some checks failed
ci/woodpecker/push/build-and-publish Pipeline failed

This commit is contained in:
BAaboe 2025-07-22 17:35:02 +02:00
parent 82f4388dab
commit 4ec36c1cda
2 changed files with 1 additions and 2 deletions

View file

@ -1,22 +0,0 @@
use std::sync::Arc;
use axum::{
Router,
middleware::from_fn_with_state,
routing::{any, delete, get, patch},
};
//use socketioxide::SocketIo;
use crate::{AppState, api::v1::auth::CurrentUser};
mod uuid;
pub fn router(app_state: Arc<AppState>) -> Router<Arc<AppState>> {
let router_with_auth = Router::new()
.route("/{uuid}", get(uuid::get))
.route("/{uuid}", delete(uuid::delete))
.layer(from_fn_with_state(app_state, CurrentUser::check_auth_layer));
Router::new()
.merge(router_with_auth)
}