From 7ce29bca3edbd325fff7ee85be1869689f7973db Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 5 Mar 2021 12:23:24 +0100 Subject: [PATCH] Rename route --- src/routes.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes.rs b/src/routes.rs index 6c85250..dcae73e 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -192,8 +192,7 @@ pub fn get_routes() -> Vec { // Conversations controller Route::post("/conversations/create", Box::new(conversations_controller::create)), Route::post("/conversations/getList", Box::new(conversations_controller::get_list)), - Route::post("/conversations/getInfoOne", Box::new(conversations_controller::get_single)), - Route::post("/conversations/getInfosOne", Box::new(conversations_controller::get_single)), + Route::post("/conversations/get_single", Box::new(conversations_controller::get_single)), Route::post("/conversations/updateSettings", Box::new(conversations_controller::update_settings)), Route::post("/conversations/getPrivate", Box::new(conversations_controller::find_private)), Route::post("/conversations/refresh_single", Box::new(conversations_controller::refresh_single)), @@ -204,7 +203,6 @@ pub fn get_routes() -> Vec { Route::post("/conversations/delete", Box::new(conversations_controller::delete_conversation)), Route::post("/conversations/updateMessage", Box::new(conversations_controller::update_message)), Route::post("/conversations/deleteMessage", Box::new(conversations_controller::delete_message)), - // TODO : add a route to mark messages seen // Search controller