add: everything else
This commit is contained in:
parent
c982e1dc15
commit
6dff656583
19 changed files with 4955 additions and 0 deletions
17
src/routes/assets.rs
Normal file
17
src/routes/assets.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
use axum::response::IntoResponse;
|
||||
|
||||
/// `/css/style.css`
|
||||
pub async fn style_css_request() -> impl IntoResponse {
|
||||
(
|
||||
[("Content-Type", "text/css")],
|
||||
crate::data::assets::STYLE_CSS,
|
||||
)
|
||||
}
|
||||
|
||||
/// `/js/atto.js`
|
||||
pub async fn atto_js_request() -> impl IntoResponse {
|
||||
(
|
||||
[("Content-Type", "text/javascript")],
|
||||
crate::data::assets::ATTO_JS,
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue