mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
implement list api keys
This commit is contained in:
parent
4d9819f6ef
commit
bead4075d8
@ -18,5 +18,9 @@ struct KeysResponse {
|
|||||||
|
|
||||||
#[get("/keys", wrap = "Authentication::Admin")]
|
#[get("/keys", wrap = "Authentication::Admin")]
|
||||||
async fn list(_data: web::Data<Data>) -> HttpResponse {
|
async fn list(_data: web::Data<Data>) -> HttpResponse {
|
||||||
todo!()
|
let api_keys = data.api_keys.clone();
|
||||||
|
HttpResponse::Ok().json(KeysResponse {
|
||||||
|
private: api_keys.private,
|
||||||
|
public: api_keys.public,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user