feat: Remove debug handler attributes from fallback and file handler functions
All checks were successful
Test / get-ci-image (pull_request) Successful in 7s
Test / lint-frontend (pull_request) Successful in 26s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 4s
Test / test-frontend (pull_request) Successful in 34s
Test / lint-crates (pull_request) Successful in 5m48s
Test / test-crates (pull_request) Successful in 5m59s
Verify / verify-generated-db-entities (pull_request) Successful in 6m28s
All checks were successful
Test / get-ci-image (pull_request) Successful in 7s
Test / lint-frontend (pull_request) Successful in 26s
Test / frontend-build (pull_request) Successful in 23s
Verify / get-ci-image (pull_request) Successful in 4s
Test / test-frontend (pull_request) Successful in 34s
Test / lint-crates (pull_request) Successful in 5m48s
Test / test-crates (pull_request) Successful in 5m59s
Verify / verify-generated-db-entities (pull_request) Successful in 6m28s
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user