mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-27 12:35:05 +08:00
23 lines
441 B
Rust
23 lines
441 B
Rust
use actix_web::web;
|
|
use actix_web::HttpResponse;
|
|
use actix_web::get;
|
|
use serde::Serialize;
|
|
|
|
use crate::helpers::Authentication;
|
|
use crate::Data;
|
|
|
|
pub fn services(cfg: &mut web::ServiceConfig) {
|
|
cfg.service(list);
|
|
}
|
|
|
|
#[derive(Serialize)]
|
|
struct KeysResponse {
|
|
private: Option<String>,
|
|
public: Option<String>,
|
|
}
|
|
|
|
#[get("/keys", wrap = "Authentication::Admin")]
|
|
async fn list(_data: web::Data<Data>) -> HttpResponse {
|
|
todo!()
|
|
}
|