Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Rudenok committed Mar 12, 2013
1 parent 76dc349 commit 95bcb29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.rdoc
Expand Up @@ -13,13 +13,17 @@ Then require it in your application and use away!

require 'rubygems'
require 'sinatra'
require 'sinatra-snap'
require 'sinatra/snap'

paths :add => '/add/:addend/:augend',
:sum => '/sum/:addend/:augend',
:subtract => '/subtract/*/*',
:difference => %r{/difference/(\d+)/(\d+)}

get :multiply => '/multiply/:one/:two' do |one, two|
"#{one.to_i * two.to_i}"
end

get :add do
redirect path_to(:sum).with(params[:addend], params[:augend])
end
Expand Down

0 comments on commit 95bcb29

Please sign in to comment.