cortiq-server 0.5.74

OpenAI-compatible HTTP serving for CMF models, built on the cortiq inference engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Web management dashboard — served as embedded static content.

use crate::AppState;
use axum::{Router, response::Html, routing::get};
use std::sync::Arc;

/// Register dashboard routes.
pub fn routes() -> Router<Arc<AppState>> {
    Router::new()
        .route("/", get(serve_dashboard))
        .route("/dashboard", get(serve_dashboard))
}

/// Serve the embedded dashboard HTML.
async fn serve_dashboard() -> Html<&'static str> {
    Html(include_str!("../static/dashboard.html"))
}