Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (10 sloc) 0.155 kb
require 'sinatra'
def reverse string
string.each_char.to_a.reverse.join
end
get '/' do
'Hello World!'
end
post '/' do
reverse params[:str]
end
Jump to Line
Something went wrong with that request. Please try again.