mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
multi-search/authentication: Add authentication tests
This commit is contained in:
parent
28d6ab78de
commit
1ba2fae3ae
3 changed files with 1144 additions and 0 deletions
|
@ -11,6 +11,7 @@ use crate::common::Server;
|
|||
pub static AUTHORIZATIONS: Lazy<HashMap<(&'static str, &'static str), HashSet<&'static str>>> =
|
||||
Lazy::new(|| {
|
||||
let mut authorizations = hashmap! {
|
||||
("POST", "/multi-search") => hashset!{"search", "*"},
|
||||
("POST", "/indexes/products/search") => hashset!{"search", "*"},
|
||||
("GET", "/indexes/products/search") => hashset!{"search", "*"},
|
||||
("POST", "/indexes/products/documents") => hashset!{"documents.add", "documents.*", "*"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue