chore: 换用更美观、现代的前端页面 (#348)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-06-01 13:42:10 +08:00
committed by GitHub
parent a574d005c3
commit c07e475fe6
127 changed files with 3886 additions and 1041 deletions

View File

@@ -48,7 +48,7 @@ pub async fn http_server(database_connection: Arc<DatabaseConnection>) -> Result
async fn frontend_files(uri: Uri) -> impl IntoResponse {
let mut path = uri.path().trim_start_matches('/');
if path.is_empty() {
if path.is_empty() || Asset::get(path).is_none() {
path = "index.html";
}
match Asset::get(path) {