create dirs + delete dirs + delete files

This commit is contained in:
2025-07-13 03:18:22 +02:00
parent 18be642181
commit b4731f6f81
53 changed files with 1056 additions and 59 deletions

View File

@@ -1,7 +1,9 @@
mod create_directory;
mod delete_directory;
mod get_warren_path;
mod list_warrens;
use axum::routing::get;
use axum::routing::{delete, get, post};
use crate::server::Router;
@@ -10,4 +12,6 @@ pub(super) fn router() -> Router {
.route("/", get(list_warrens::route))
.route("/{warren_id}", get(get_warren_path::route))
.route("/{warren_id}/{*rest}", get(get_warren_path::route))
.route("/{warren_id}/{*rest}", post(create_directory::route))
.route("/{warren_id}/{*rest}", delete(delete_directory::route))
}