./lib/dolt/sinatra/multi_repo_browser.rb in dolt-0.17.0 vs ./lib/dolt/sinatra/multi_repo_browser.rb in dolt-0.18.0
- old
+ new
@@ -25,9 +25,11 @@
class MultiRepoBrowser < Dolt::Sinatra::Base
include Dolt::View::MultiRepository
include Dolt::View::Blob
include Dolt::View::Tree
+ not_found { renderer.render("404") }
+
get "/" do
response["Content-Type"] = "text/html"
body(renderer.render(:index, { :repositories => actions.repositories }))
end