Add emotes HTML page at /, health endpoint, Dockerfile, and Docker workflow
Agent-Logs-Url: https://github.com/Open3DLab/mikebase/sessions/349bd27e-61d5-40d4-b4d1-0c552a78a9e2 Co-authored-by: Ganonmaster <168445+Ganonmaster@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e230720581
commit
715f825840
@@ -1,7 +1,7 @@
|
||||
use axum::{
|
||||
extract::{Multipart, Path, State},
|
||||
http::StatusCode,
|
||||
response::{IntoResponse, Json},
|
||||
response::{Html, IntoResponse, Json},
|
||||
};
|
||||
use serde_json::json;
|
||||
|
||||
@@ -11,9 +11,9 @@ use crate::{
|
||||
};
|
||||
|
||||
/// GET /
|
||||
/// Returns a simple health-check message.
|
||||
/// Serves an HTML page that dynamically loads and displays emotes from /json.
|
||||
pub async fn root() -> impl IntoResponse {
|
||||
Json(json!({"status": "ok", "message": "mikebase server is running"}))
|
||||
Html(include_str!("../templates/index.html"))
|
||||
}
|
||||
|
||||
/// GET /json
|
||||
|
||||
Reference in New Issue
Block a user