Skip to content

Commit 05bc26c

Browse files
committed
Redirect component requests to 404
Closes #483
1 parent 98c1649 commit 05bc26c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ fn index() -> Template {
9797
Template::render(page, &context)
9898
}
9999

100+
#[get("/components/<_file..>", rank = 1)]
101+
fn components(_file: PathBuf) -> Template {
102+
not_found()
103+
}
104+
100105
#[get("/logos/<file..>", rank = 1)]
101106
fn logos(file: PathBuf) -> Option<NamedFile> {
102107
NamedFile::open(Path::new("static/logos").join(file)).ok()
@@ -299,6 +304,7 @@ fn main() {
299304
subject,
300305
files,
301306
logos,
307+
components,
302308
redirect,
303309
redirect_en_us,
304310
redirect_locale

0 commit comments

Comments
 (0)