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:
copilot-swe-agent[bot]
2026-04-07 00:21:42 +00:00
committed by GitHub
parent e230720581
commit 715f825840
7 changed files with 183 additions and 3 deletions
+3 -3
View File
@@ -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