2024-02-19 23:51:18 +01:00
|
|
|
use std::fs;
|
|
|
|
|
|
|
|
|
|
use axum::response::IntoResponse;
|
|
|
|
|
use hyper::{header::CONTENT_TYPE, StatusCode};
|
|
|
|
|
|
2024-06-03 18:39:17 +02:00
|
|
|
use crate::static_values;
|
|
|
|
|
|
2024-02-19 23:51:18 +01:00
|
|
|
pub async fn styles() -> impl IntoResponse {
|
|
|
|
|
(
|
|
|
|
|
StatusCode::OK,
|
|
|
|
|
[(CONTENT_TYPE, "text/css")],
|
2024-06-03 18:39:17 +02:00
|
|
|
static_values::STYLES,
|
2024-02-19 23:51:18 +01:00
|
|
|
)
|
|
|
|
|
}
|
2024-03-18 23:04:48 +01:00
|
|
|
|
|
|
|
|
pub async fn csv() -> impl IntoResponse {
|
|
|
|
|
(
|
|
|
|
|
StatusCode::OK,
|
|
|
|
|
[(CONTENT_TYPE, "application/javascript")],
|
2024-06-03 18:39:17 +02:00
|
|
|
static_values::CSV,
|
2024-03-18 23:04:48 +01:00
|
|
|
)
|
|
|
|
|
}
|