Can upload files

This commit is contained in:
2025-04-09 21:12:47 +02:00
parent 84e1c57dc9
commit 61a4ea62c6
24 changed files with 342 additions and 61 deletions

View File

@ -119,6 +119,8 @@ async fn main() -> std::io::Result<()> {
"/api/account/{account_id}",
web::delete().to(accounts_controller::delete),
)
// Files controller
.route("/api/file", web::post().to(files_controller::upload))
// Static assets
.route("/", web::get().to(static_controller::root_index))
.route(