lib/gollum/frontend/app.rb in gollum-1.2.1 vs lib/gollum/frontend/app.rb in gollum-1.3.0
- old
+ new
@@ -167,9 +167,16 @@
@results = wiki.search @query
@name = @query
mustache :search
end
+ get '/pages' do
+ wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
+ @results = wiki.pages
+ @ref = wiki.ref
+ mustache :pages
+ end
+
get '/*' do
show_page_or_file(params[:splat].first)
end
def show_page_or_file(name)