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
1 changed files with 1 additions and 2 deletions

View File

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