mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-09 00:47:19 +08:00
Compress included files to conserve disk space
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user