Compress included files to conserve disk space

This commit is contained in:
Ethan O'Brien
2024-05-09 19:07:26 -05:00
parent 98aed96701
commit c2db9c6407
7 changed files with 62 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ use actix_web::{
};
use json::object;
use crate::include_file;
use crate::router::{userdata, items};
fn get_login_token(req: &HttpRequest) -> Option<String> {
@@ -148,5 +149,5 @@ pub fn main(req: HttpRequest) -> HttpResponse {
}
HttpResponse::Ok()
.insert_header(ContentType::html())
.body(include_str!("../../webui/dist/index.html"))
.body(include_file!("webui/dist/index.html"))
}