From 8d6dc6365ca5ef681430ca3c67c62556f80de4c6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 26 Jun 2020 09:55:53 +0200 Subject: [PATCH] Ready to implement new route --- src/controllers/groups_controller.rs | 5 +++++ src/controllers/routes.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index 590aaae..c540ba4 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -117,4 +117,9 @@ pub fn check_virtual_dir(r: &mut HttpRequestHandler) -> RequestResult { } r.success("Requested virtual directory seems to be available!") +} + +/// Change a group's logo +pub fn upload_logo(r: &mut HttpRequestHandler) -> RequestResult { + r.success("implement me") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 92fa78f..a1c2ae8 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -144,6 +144,8 @@ pub fn get_routes() -> Vec { Route::post("/groups/checkVirtualDirectory", Box::new(groups_controller::check_virtual_dir)), + Route::post("/groups/upload_logo", Box::new(groups_controller::upload_logo)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),