move the API key in meilisearch_types

This commit is contained in:
Tamo
2022-10-12 16:10:28 +02:00
committed by Clément Renault
parent c192146fbe
commit 7034803712
12 changed files with 407 additions and 246 deletions

View File

@ -138,9 +138,9 @@ pub mod policies {
use uuid::Uuid;
use crate::extractors::authentication::Policy;
use meilisearch_auth::{Action, AuthController, AuthFilter, SearchRules};
use meilisearch_auth::{AuthController, AuthFilter, SearchRules};
// reexport actions in policies in order to be used in routes configuration.
pub use meilisearch_auth::actions;
pub use meilisearch_types::keys::{actions, Action};
fn tenant_token_validation() -> Validation {
let mut validation = Validation::default();