don't attempt to serve public assets from sinatra

This commit is contained in:
rick
2011-01-10 16:44:20 -08:00
parent 0fd639a149
commit 41a21efe9f
+4
View File
@@ -141,6 +141,10 @@ module Precious
mustache :compare
end
get %r{^/(javascript|css|images)} do
halt 404
end
get %r{/(.+?)/([0-9a-f]{40})} do
name = params[:captures][0]
wiki = Gollum::Wiki.new(settings.gollum_path)