mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
first mostly working version
This commit is contained in:
parent
c051166bcc
commit
d976e680c5
18 changed files with 403 additions and 57 deletions
|
@ -165,6 +165,17 @@ impl AuthController {
|
|||
None => Ok(false),
|
||||
}
|
||||
}
|
||||
|
||||
/// Delete all the keys in the DB.
|
||||
pub fn raw_delete_all_keys(&mut self) -> Result<()> {
|
||||
self.store.delete_all_keys()
|
||||
}
|
||||
|
||||
/// Delete all the keys in the DB.
|
||||
pub fn raw_insert_key(&mut self, key: Key) -> Result<()> {
|
||||
self.store.put_api_key(key)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct AuthFilter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue