diff --git a/src/routes/key.rs b/src/routes/key.rs index be089beb2..7fb6ae00a 100644 --- a/src/routes/key.rs +++ b/src/routes/key.rs @@ -18,5 +18,9 @@ struct KeysResponse { #[get("/keys", wrap = "Authentication::Admin")] async fn list(_data: web::Data) -> HttpResponse { - todo!() + let api_keys = data.api_keys.clone(); + HttpResponse::Ok().json(KeysResponse { + private: api_keys.private, + public: api_keys.public, + }) }