2 ms·
> By changing two lines, it can also respond to POST requests. That's twice as many lines you need to replace as in Sinatra: get '/hello/:name' do to
by masklinn 14y ago
> By changing two lines, it can also respond to POST requests.
That's twice as many lines you need to replace as in Sinatra:
get '/hello/:name' do
to
route :get, :post '/hello/:name' do