bye
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user