Update the /indexes/{indexUid} verb from PUT to PATCH

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

View File

@ -27,7 +27,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
.service(
web::resource("")
.route(web::get().to(SeqHandler(get_index)))
.route(web::put().to(SeqHandler(update_index)))
.route(web::patch().to(SeqHandler(update_index)))
.route(web::delete().to(SeqHandler(delete_index))),
)
.service(web::resource("/stats").route(web::get().to(SeqHandler(get_index_stats))))