feat: update response

This commit is contained in:
2022-07-30 12:17:06 +08:00
parent 8421bd61f3
commit 487739515b

View File

@@ -85,7 +85,9 @@ async fn response_requests(
(&Method::GET, "/version") => get_version().await,
_ => Ok(Response::builder()
.status(StatusCode::NOT_FOUND)
.body(format!("{}\n", serde_json::to_string_pretty(&json!({ "error": "not_found" }))?).into())?),
.body(format!("{}\n", serde_json::to_string_pretty(&json!({
"error": "not_found",
}))?).into())?),
}
}