mirror of https://github.com/iv-org/invidious.git
Fix error handling
This commit is contained in:
parent
d79c1ff3e9
commit
a9ef931856
|
@ -242,12 +242,12 @@ get "/search" do |env|
|
||||||
templated "search"
|
templated "search"
|
||||||
end
|
end
|
||||||
|
|
||||||
error 404 do |env|
|
get "/:path" do |env|
|
||||||
templated "index"
|
env.redirect "/"
|
||||||
end
|
end
|
||||||
|
|
||||||
error 500 do |env|
|
error 500 do |env|
|
||||||
templated "index"
|
"Error 500"
|
||||||
end
|
end
|
||||||
|
|
||||||
public_folder "assets"
|
public_folder "assets"
|
||||||
|
|
Loading…
Reference in New Issue