mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 08:48:32 +08:00
commit
f175d20599
@ -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