Can delete an uploaded file
This commit is contained in:
@ -125,7 +125,10 @@ async fn main() -> std::io::Result<()> {
|
||||
"/api/file/{file_id}",
|
||||
web::get().to(files_controller::download),
|
||||
)
|
||||
// TODO Delete file
|
||||
.route(
|
||||
"/api/file/{file_id}",
|
||||
web::delete().to(files_controller::delete),
|
||||
)
|
||||
// Static assets
|
||||
.route("/", web::get().to(static_controller::root_index))
|
||||
.route(
|
||||
|
Reference in New Issue
Block a user