mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
add the searches route and fix a few broken things
This commit is contained in:
parent
78f6f22a80
commit
04e4586fb3
8 changed files with 196 additions and 43 deletions
|
@ -35,6 +35,7 @@ use self::open_api_utils::OpenApiAuth;
|
|||
use self::tasks::AllTasks;
|
||||
|
||||
const PAGINATION_DEFAULT_LIMIT: usize = 20;
|
||||
const PAGINATION_DEFAULT_LIMIT_FN: fn() -> usize = || 20;
|
||||
|
||||
mod api_key;
|
||||
pub mod batches;
|
||||
|
@ -55,6 +56,8 @@ pub mod tasks;
|
|||
nest(
|
||||
(path = "/tasks", api = tasks::TaskApi),
|
||||
(path = "/indexes", api = indexes::IndexesApi),
|
||||
// We must stop the search path here because the rest must be configured by each route individually
|
||||
(path = "/indexes", api = indexes::search::SearchApi),
|
||||
(path = "/snapshots", api = snapshot::SnapshotApi),
|
||||
(path = "/dumps", api = dump::DumpApi),
|
||||
(path = "/keys", api = api_key::ApiKeyApi),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue