Update meilisearch-http/src/routes/mod.rs

Co-authored-by: marin <postma.marin@protonmail.com>
This commit is contained in:
Irevoire 2021-03-16 16:57:29 +01:00 committed by GitHub
parent 0c27bea135
commit 81255814b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,8 +45,7 @@ pub async fn load_html() -> HttpResponse {
/// ``` /// ```
#[get("/")] #[get("/")]
pub async fn running() -> HttpResponse { pub async fn running() -> HttpResponse {
let payload = serde_json::json!({ "status": "MeiliSearch is running" }).to_string(); HttpResponse::Ok().json(serde_json::json!({ "status": "MeiliSearch is running" }))
HttpResponse::Ok().body(payload)
} }
#[get("/bulma.min.css")] #[get("/bulma.min.css")]