Skip to content

Commit

Permalink
Remove redundant 404 handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Jun 2, 2024
1 parent 5ab5127 commit a4bce1b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("/<locale>/components/<_file..>", rank = 11)]
fn components_locale(locale: SupportedLocale, _file: PathBuf) -> Template {
not_found_locale(locale.0)
}

#[get("/logos/<file..>", rank = 1)]
async fn logos(file: PathBuf) -> Option<CachedNamedFile> {
NamedFile::open(Path::new("static/logos").join(file))
Expand Down Expand Up @@ -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,
],
)
Expand Down

0 comments on commit a4bce1b

Please sign in to comment.