feature/embbed-frontend #7

Merged
GW_MC merged 14 commits from feature/embbed-frontend into master 2026-04-25 14:34:56 +08:00
Showing only changes of commit 1eeca606ec - Show all commits

View File

@@ -27,7 +27,6 @@ pub async fn get_router() -> Router {
.fallback(get_fallback_handler().await) .fallback(get_fallback_handler().await)
} }
#[cfg_attr(debug_assertions, axum::debug_handler)]
pub async fn get_fallback_handler() -> Result<axum::response::Html<Vec<u8>>, axum::http::StatusCode> pub async fn get_fallback_handler() -> Result<axum::response::Html<Vec<u8>>, axum::http::StatusCode>
{ {
let index_html = get_index_html(); let index_html = get_index_html();
@@ -41,7 +40,6 @@ fn get_index_html() -> Option<Vec<u8>> {
FrontendAssets::get(INDEX_HTML).map(|asset| asset.data.as_ref().to_owned()) FrontendAssets::get(INDEX_HTML).map(|asset| asset.data.as_ref().to_owned())
} }
#[cfg_attr(debug_assertions, axum::debug_handler)]
async fn get_file_handler( async fn get_file_handler(
axum::extract::Path(path): axum::extract::Path<String>, axum::extract::Path(path): axum::extract::Path<String>,
) -> Result<axum::response::Response, axum::http::StatusCode> { ) -> Result<axum::response::Response, axum::http::StatusCode> {