about summary refs log tree commit diff
path: root/kittybox-rs/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/src/frontend')
-rw-r--r--kittybox-rs/src/frontend/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/kittybox-rs/src/frontend/mod.rs b/kittybox-rs/src/frontend/mod.rs
index 970a09b..58de39d 100644
--- a/kittybox-rs/src/frontend/mod.rs
+++ b/kittybox-rs/src/frontend/mod.rs
@@ -283,9 +283,11 @@ const INDIEAUTH_JS: &[u8] = include_bytes!(concat!(
 const LIB_JS: &[u8] = include_bytes!(concat!(
     env!("OUT_DIR"), "/", "kittybox_js", "/", "lib.js"
 ));
+const JSLABELS_HTML: &[u8] = include_bytes!("../../javascript/jslicense.html");
 const MIME_JS: &str = "application/javascript";
 const MIME_CSS: &str = "text/css";
 const MIME_PLAIN: &str = "text/plain";
+const MIME_HTML: &str = "text/html; charset=utf-8";
 
 pub async fn statics(Path(name): Path<String>) -> impl IntoResponse {
     use axum::http::header::CONTENT_TYPE;
@@ -296,6 +298,7 @@ pub async fn statics(Path(name): Path<String>) -> impl IntoResponse {
         "onboarding.css" => (StatusCode::OK, [(CONTENT_TYPE, MIME_CSS)], ONBOARDING_CSS),
         "indieauth.js" => (StatusCode::OK, [(CONTENT_TYPE, MIME_JS)], INDIEAUTH_JS),
         "lib.js" => (StatusCode::OK, [(CONTENT_TYPE, MIME_JS)], LIB_JS),
+        "jslicense.html" => (StatusCode::OK, [(CONTENT_TYPE, MIME_HTML)], JSLABELS_HTML),
         _ => (
             StatusCode::NOT_FOUND,
             [(CONTENT_TYPE, MIME_PLAIN)],