Update the /indexes/{indexUid}/settings verb from POST to PATCH

This commit is contained in:
Kerollmops 2022-06-02 11:49:46 +02:00
parent bb405aa729
commit f8d3f739ad
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -271,7 +271,7 @@ macro_rules! generate_configure {
use crate::extractors::sequential_extractor::SeqHandler;
cfg.service(
web::resource("")
.route(web::post().to(SeqHandler(update_all)))
.route(web::patch().to(SeqHandler(update_all)))
.route(web::get().to(SeqHandler(get_all)))
.route(web::delete().to(SeqHandler(delete_all))))
$(.service($mod::resources()))*;