mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix error handling
This commit is contained in:
parent
d79c1ff3e9
commit
a9ef931856
1 changed files with 3 additions and 3 deletions
|
@ -242,12 +242,12 @@ get "/search" do |env|
|
|||
templated "search"
|
||||
end
|
||||
|
||||
error 404 do |env|
|
||||
templated "index"
|
||||
get "/:path" do |env|
|
||||
env.redirect "/"
|
||||
end
|
||||
|
||||
error 500 do |env|
|
||||
templated "index"
|
||||
"Error 500"
|
||||
end
|
||||
|
||||
public_folder "assets"
|
||||
|
|
Loading…
Reference in a new issue