Files
k-photos/crates/presentation/src/routes/storage.rs
Gabriel Kaszewski 49f77a78b9 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
2026-05-31 23:13:07 +02:00

16 lines
402 B
Rust

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))
}