Created
March 25, 2016 14:13
-
-
Save thilonel/e01fb3b6f595cc62ced1 to your computer and use it in GitHub Desktop.
restful_api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/app' | |
class App < Rack::App | |
desc 'get user' | |
get '/users/:user_id' do | |
params['user_id'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment