mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2024-12-22 22:38:19 +01:00
Use error template for 404 and 500
This commit is contained in:
parent
ecb1999795
commit
dc45fbfad6
@ -269,12 +269,14 @@ get "/search" do |env|
|
||||
templated "search"
|
||||
end
|
||||
|
||||
get "/:path" do |env|
|
||||
env.redirect "/"
|
||||
error 404 do |env|
|
||||
error_message = "404 Page not found"
|
||||
templated "error"
|
||||
end
|
||||
|
||||
error 500 do |env|
|
||||
templated "index"
|
||||
error_message = "500 Server error"
|
||||
templated "error"
|
||||
end
|
||||
|
||||
public_folder "assets"
|
||||
|
Loading…
Reference in New Issue
Block a user