Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 369 Bytes
def app_routes
Rack::Builder.new do
use Rack::Static, :urls => ["/public"]
use Rack::Session::Cookie
routes = Usher::Interface.for(:rack) do
get('/websocket').to(ChatController)
get('/retrieve').to(RetrieveController)
post('/receive').to(ReceiveController)
get('/(:file)').to(StaticController)
end
run routes
end
end
Something went wrong with that request. Please try again.