Guest User

Untitled

a guest
Dec 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'sinatra'
  2.  
  3. # Main route - this is the form where we take the input
  4. get '/' do
  5. <<-HTML
  6. This is an example of simple routes.
  7. Check out this <a href='/~irs221/sinatra/same_route_twice/same_route'>route</a>
  8. HTML
  9. end
  10.  
  11. get '/same_route' do
  12. "Same route #1"
  13. end
  14.  
  15. get '/same_route' do
  16. "Same route #2"
  17. end
Add Comment
Please, Sign In to add comment