Added the capability to upload CSV files

This commit is contained in:
Manuel Forcén Muñoz 2024-03-18 23:04:48 +01:00
parent 90b02eef79
commit d1e736d7a7
19 changed files with 678 additions and 99 deletions

View file

@ -10,3 +10,11 @@ pub async fn styles() -> impl IntoResponse {
fs::read_to_string("static/styles.css").unwrap(),
)
}
pub async fn csv() -> impl IntoResponse {
(
StatusCode::OK,
[(CONTENT_TYPE, "application/javascript")],
fs::read_to_string("static/csv.js").unwrap(),
)
}