Add docker build, rewrite Actions for Gitea, and add healthcheck endpoint.

This commit is contained in:
Ganonmaster
2026-04-09 17:26:35 +02:00
parent e230720581
commit 1eee6ed199
7 changed files with 219 additions and 51 deletions
+1
View File
@@ -54,6 +54,7 @@ async fn main() {
let app = Router::new()
.route("/", get(routes::emotes::root))
.route("/health", get(routes::health::health))
.route("/version", get(routes::version::version))
.route("/json", get(routes::emotes::list_emotes))
.route("/emotes", post(routes::emotes::create_emote))
+8
View File
@@ -0,0 +1,8 @@
use axum::response::{IntoResponse, Json};
use serde_json::json;
/// GET /health
/// Returns a simple health-check response for liveness probes.
pub async fn health() -> impl IntoResponse {
Json(json!({"status": "ok"}))
}
+1
View File
@@ -1,2 +1,3 @@
pub mod emotes;
pub mod health;
pub mod version;