Skip to content

Commit b10ed0c

Browse files
committed
Redirect component requests to 404
Closes #483
1 parent b54af83 commit b10ed0c

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
@@ -96,6 +96,11 @@ fn index() -> Template {
9696
Template::render(page, &context)
9797
}
9898

99+
#[get("/components/<_file..>", rank = 1)]
100+
fn components(_file: PathBuf) -> Template {
101+
not_found()
102+
}
103+
99104
#[get("/logos/<file..>", rank = 1)]
100105
fn logos(file: PathBuf) -> Option<NamedFile> {
101106
NamedFile::open(Path::new("static/logos").join(file)).ok()
@@ -298,6 +303,7 @@ fn main() {
298303
subject,
299304
files,
300305
logos,
306+
components,
301307
redirect,
302308
redirect_en_us,
303309
redirect_locale

0 commit comments

Comments
 (0)