mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix the /swap-indexes route API
1. payload 2. error messages 3. auth errors
This commit is contained in:
parent
92c41f0ef6
commit
2808be9d45
6 changed files with 140 additions and 73 deletions
|
@ -20,7 +20,7 @@ use crate::extractors::authentication::GuardedData;
|
|||
mod api_key;
|
||||
mod dump;
|
||||
pub mod indexes;
|
||||
mod indexes_swap;
|
||||
mod swap_indexes;
|
||||
mod tasks;
|
||||
|
||||
pub fn configure(cfg: &mut web::ServiceConfig) {
|
||||
|
@ -31,7 +31,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
|
|||
.service(web::resource("/stats").route(web::get().to(get_stats)))
|
||||
.service(web::resource("/version").route(web::get().to(get_version)))
|
||||
.service(web::scope("/indexes").configure(indexes::configure))
|
||||
.service(web::scope("indexes-swap").configure(indexes_swap::configure));
|
||||
.service(web::scope("swap-indexes").configure(swap_indexes::configure));
|
||||
}
|
||||
|
||||
/// Extracts the raw values from the `StarOr` types and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue