refactor: split routes.rs into per-context modules
routes/auth.rs — public (register, login, refresh) + protected (me, logout) routes/catalog.rs — assets, stacks, duplicates routes/organization.rs — albums routes/sharing.rs — public (access_by_token) + protected (share, link, revoke) routes/storage.rs — volumes, library paths, quota routes/sidecar.rs — export, import, detect, resolve, full ops routes/processing.rs — jobs, batches, plugins, pipelines routes/mod.rs — merges all, applies require_auth to protected group
This commit is contained in:
15
crates/presentation/src/routes/storage.rs
Normal file
15
crates/presentation/src/routes/storage.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use crate::{handlers::storage, state::AppState};
|
||||
use axum::{
|
||||
Router,
|
||||
routing::{get, post},
|
||||
};
|
||||
|
||||
pub fn routes() -> Router<AppState> {
|
||||
Router::new()
|
||||
.route("/storage/volumes", post(storage::register_volume))
|
||||
.route(
|
||||
"/storage/library-paths",
|
||||
post(storage::register_library_path),
|
||||
)
|
||||
.route("/storage/quota", get(storage::check_quota))
|
||||
}
|
||||
Reference in New Issue
Block a user