Skip to content

Commit

Permalink
Merge pull request #1981 from rust-lang/remo/qswrrqvmztuz
Browse files Browse the repository at this point in the history
Remove redundant 404 handlers
  • Loading branch information
Manishearth authored Jun 3, 2024
2 parents 5ab5127 + a4bce1b commit 71b2310
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 71b2310

Please sign in to comment.