Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: da8ee715ae
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.432 kB
def app_routes
Rack::Builder.new do
use Rack::Session::Cookie
routes = HttpRouter.new do
get('/websocket').to(ChatController)
get('/retrieve').to(RetrieveController)
post('/receive').to(ReceiveController)
get('/(:file)').to(StaticController)
end
file_server = Rack::File.new(File.join(File.dirname(__FILE__), '../public/'))
run Rack::Cascade.new([file_server, routes])
end
end
Jump to Line
Something went wrong with that request. Please try again.