Skip to content

Instantly share code, notes, and snippets.

@ozgun
Last active December 14, 2015 14:08
Show Gist options
  • Select an option

  • Save ozgun/5098688 to your computer and use it in GitHub Desktop.

Select an option

Save ozgun/5098688 to your computer and use it in GitHub Desktop.
Simple sinatra rack app
class AuthApi < Sinatra::Base
get 'ping' do
"pong"
end
get 'ping2' do
"pong2"
end
end
#routes.rb dosyası da şu şekilde:
mount AuthApi => "/auth_api"
# request: http://localhost:3000/auth_api/ping
# request: http://localhost:3000/auth_api/ping2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment