use axum::http::header;
use axum::response::{Html, IntoResponse as _, Response};
const INDEX_HTML: &str = include_str!("../assets/index.html");
const APP_JS: &str = include_str!("../assets/app.js");
const STYLE_CSS: &str = include_str!("../assets/style.css");
pub async fn index() -> Html<&'static str> {
Html(INDEX_HTML)
}
pub async fn app_js() -> Response {
(
[(
header::CONTENT_TYPE,
"application/javascript; charset=utf-8",
)],
APP_JS,
)
.into_response()
}
pub async fn style_css() -> Response {
(
[(header::CONTENT_TYPE, "text/css; charset=utf-8")],
STYLE_CSS,
)
.into_response()
}