./lib/dolt/sinatra/multi_repo_browser.rb in dolt-0.14.0 vs ./lib/dolt/sinatra/multi_repo_browser.rb in dolt-0.15.0

- old
+ new

@@ -30,9 +30,13 @@ get "/" do response["Content-Type"] = "text/html" body(renderer.render(:index, { :repositories => actions.repositories })) end + get "/:repo" do + redirect "/#{params[:repo]}/tree/master:" + end + get "/*/tree/*:*" do repo, ref, path = params[:splat] tree(repo, ref, path) end