13 lines
275 B
Rust
13 lines
275 B
Rust
|
|
use std::fs;
|
||
|
|
|
||
|
|
use axum::response::IntoResponse;
|
||
|
|
use hyper::{header::CONTENT_TYPE, StatusCode};
|
||
|
|
|
||
|
|
pub async fn styles() -> impl IntoResponse {
|
||
|
|
(
|
||
|
|
StatusCode::OK,
|
||
|
|
[(CONTENT_TYPE, "text/css")],
|
||
|
|
fs::read_to_string("static/styles.css").unwrap(),
|
||
|
|
)
|
||
|
|
}
|