Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sinatra'
- require 'sinatra/base'
- class MyApp < Sinatra::Base
- after '/' do
- puts response.body.inspect
- body[0] << 'new'
- puts response.body.inspect
- end
- end
- get '/' do
- body ['new', 'hack']
- end
- use MyApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement