lib/gitdocs/server.rb in gitdocs-0.4.0 vs lib/gitdocs/server.rb in gitdocs-0.4.1

- old
+ new

@@ -34,9 +34,13 @@ manager.restart redirect! '/settings' end end + path('search').get do + render! "search", :layout => 'app', :locals => {:conf => manager.config, :results => manager.search(request.GET['q']), :nav_state => nil} + end + var :int do |idx| gd = gds[idx] halt 404 if gd.nil? file_path = URI.unescape(request.path_info) file_ext = File.extname(file_path) \ No newline at end of file