1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Limit new route with password check

This commit is contained in:
Pierre HUBERT 2021-02-16 18:18:49 +01:00
parent d2d16d42d3
commit 2edffa36d8

View File

@ -175,7 +175,7 @@ pub fn get_routes() -> Vec<Route> {
Route::post("/settings/upload_custom_emoji", Box::new(settings_controller::upload_custom_emoji)),
Route::post("/settings/delete_custom_emoji", Box::new(settings_controller::delete_custom_emoji)),
Route::post("/settings/get_data_conservation_policy", Box::new(settings_controller::get_data_conservation_policy)),
Route::post("/settings/set_data_conservation_policy", Box::new(settings_controller::set_data_conservation_policy)),
Route::limited_post("/settings/set_data_conservation_policy", Box::new(settings_controller::set_data_conservation_policy), LimitPolicy::FAILURE(10)),
// Friends controller