mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Rewrite create_index route new path, body request and response
This commit is contained in:
parent
076e781810
commit
5527457655
2 changed files with 62 additions and 24 deletions
|
@ -13,7 +13,9 @@ pub mod synonym;
|
|||
pub fn load_routes(app: &mut tide::App<Data>) {
|
||||
app.at("").nest(|router| {
|
||||
router.at("/indexes").nest(|router| {
|
||||
router.at("/").get(index::list_indexes);
|
||||
router.at("/")
|
||||
.get(index::list_indexes)
|
||||
.post(index::create_index);
|
||||
|
||||
router.at("/search").post(search::search_multi_index);
|
||||
|
||||
|
@ -29,7 +31,6 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||
router
|
||||
.at("/")
|
||||
.get(index::get_index_schema)
|
||||
.post(index::create_index)
|
||||
.put(index::update_schema)
|
||||
.delete(index::delete_index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue