Invidious is an alternative front-end to YouTube
Use error template for 404 and 500
Omar Rothdc45fbfad6a8
diff --git a/src/invidious.cr b/src/invidious.crindex 5373a84d..e5c5553e 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -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"enderror 500 do |env|- templated "index"+ error_message = "500 Server error"+ templated "error"endpublic_folder "assets"