mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-01-30 14:03:00 +00:00
Ready to implement new route
This commit is contained in:
parent
ba2e89d0be
commit
0254b6b614
@ -210,4 +210,9 @@ pub fn refresh_list(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
}
|
||||
|
||||
r.set_response(ConversationRefreshResultAPI::new(list))
|
||||
}
|
||||
|
||||
/// Refresh a single conversation
|
||||
pub fn refresh_single(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.success("implement it")
|
||||
}
|
@ -102,6 +102,8 @@ pub fn get_routes() -> Vec<Route> {
|
||||
|
||||
Route::post("/conversations/refresh", Box::new(conversations_controller::refresh_list)),
|
||||
|
||||
Route::post("/conversations/refresh_single", Box::new(conversations_controller::refresh_single)),
|
||||
|
||||
|
||||
// Virtual directory controller
|
||||
Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user