Skip to content

HTTPS clone URL

Subversion checkout URL

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

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.76 kB
def app_routes
# Usher::Interface.for(:rack) do
# get('/').to(ChatController)
# get('/retrieve').to(RetrieveController)
# post('/receive').to(ReceiveController)
# end
# Rack::Builder.new do
# use Rack::Static, :urls => ["/public"]
# use Rack::Session::Cookie
#
# routes = Usher::Interface.for(:rack) do
# get('/').to(ChatController)
# get('/retrieve').to(RetrieveController)
# post('/receive').to(ReceiveController)
# end
# run routes
# end
Rack::Builder.new do
use Rack::Static, :urls => ["/public"]
use Rack::Session::Cookie
map("/websocket") { run ChatController }
map("/retrieve") { run RetrieveController }
map("/receive") { run ReceiveController }
end
end
Jump to Line
Something went wrong with that request. Please try again.