Skip to content

Commit

Permalink
🐛 (api) Fix metadata api lookup (#585)
Browse files Browse the repository at this point in the history
Co-authored-by: darb5 <[email protected]>
  • Loading branch information
darb5 and darb5 authored Feb 10, 2025
1 parent 8678997 commit 5769f82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/server/src/routers/api/v1/media/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ pub(crate) mod individual;
pub(crate) mod thumbnails;

use axum::{
extract::DefaultBodyLimit,
extract::{DefaultBodyLimit, Extension},
middleware,
routing::{get, post, put},
Router,
};

use serde_qs::axum::QsQueryConfig;

use crate::{config::state::AppState, middleware::auth::auth_middleware};

pub(crate) fn mount(app_state: AppState) -> Router<AppState> {
Expand Down Expand Up @@ -57,5 +59,6 @@ pub(crate) fn mount(app_state: AppState) -> Router<AppState> {
.put(individual::put_media_metadata),
),
)
.layer(Extension(QsQueryConfig::new(5, false)))
.layer(middleware::from_fn_with_state(app_state, auth_middleware))
}

0 comments on commit 5769f82

Please sign in to comment.