Can download files

This commit is contained in:
2025-04-09 21:26:49 +02:00
parent 61a4ea62c6
commit 6f18aafc33
9 changed files with 126 additions and 5 deletions

View File

@ -121,6 +121,11 @@ async fn main() -> std::io::Result<()> {
)
// Files controller
.route("/api/file", web::post().to(files_controller::upload))
.route(
"/api/file/{file_id}",
web::get().to(files_controller::download),
)
// TODO Delete file
// Static assets
.route("/", web::get().to(static_controller::root_index))
.route(