From a4bce1b62236424fe482c9ea55f9359ebb3a32f7 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sun, 2 Jun 2024 21:12:39 +0200 Subject: [PATCH] Remove redundant 404 handlers --- src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index a8667227..6aeab9d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,16 +151,6 @@ fn baseurl(lang: &str) -> String { } } -#[get("/components/<_file..>", rank = 1)] -fn components(_file: PathBuf) -> Template { - not_found_locale(ENGLISH.into()) -} - -#[get("//components/<_file..>", rank = 11)] -fn components_locale(locale: SupportedLocale, _file: PathBuf) -> Template { - not_found_locale(locale.0) -} - #[get("/logos/", rank = 1)] async fn logos(file: PathBuf) -> Option { NamedFile::open(Path::new("static/logos").join(file)) @@ -521,14 +511,12 @@ async fn rocket() -> _ { files, robots_txt, logos, - components, index_locale, category_locale, governance_locale, team_locale, production_locale, subject_locale, - components_locale, redirect_bare_en_us, ], )