This commit is contained in:
lda
2026-01-19 01:10:56 +07:00 Unverified
parent 51888b7a8e
commit 70b4e59f28
5 changed files with 3 additions and 78 deletions
-1
View File
@@ -13,7 +13,6 @@ pub mod wake;
// this is so bad
pub mod ping;
pub mod query;
pub mod route;
// no custom ip deserializer needed when using axum_extra::extract::Query
// but we add a generic one to ignore blanks and accept OneOrMany
-11
View File
@@ -1,11 +0,0 @@
use axum::{http::header, response::IntoResponse};
pub async fn serve_js(content: &'static str) -> impl IntoResponse {
(
[
(header::CONTENT_TYPE, "application/javascript"),
(header::CACHE_CONTROL, "public, max-age=300"),
],
content,
)
}