Skip to content

Commit

Permalink
Fix static file serving. Should make the flash sockets work again
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jan 12, 2010
1 parent 510220c commit d58c083
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/routes.rb
@@ -1,6 +1,5 @@
def app_routes
Rack::Builder.new do
use Rack::Static, :urls => ["/public"]
use Rack::Session::Cookie

routes = Usher::Interface.for(:rack) do
Expand All @@ -9,6 +8,9 @@ def app_routes
post('/receive').to(ReceiveController)
get('/(:file)').to(StaticController)
end
run routes

file_server = Rack::File.new(File.join(File.dirname(__FILE__), '../public/'))

run Rack::Cascade.new([file_server, routes])
end
end

0 comments on commit d58c083

Please sign in to comment.