meilisearch/src/routes/key.rs

23 lines
440 B
Rust
Raw Normal View History

2020-12-12 20:32:06 +08:00
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 {
2020-12-12 23:04:37 +08:00
todo!()
2020-12-12 20:32:06 +08:00
}