kopia lustrzana https://github.com/iv-org/invidious
Fix error handling
rodzic
d79c1ff3e9
commit
a9ef931856
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue