Created
August 5, 2014 14:42
-
-
Save kiote/dcb4ccb898a7180278ff to your computer and use it in GitHub Desktop.
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 'sinatra/base' | |
require 'sinatra/config_file' | |
require 'json' | |
class Npi < Sinatra::Base | |
register Sinatra::ConfigFile | |
config_file 'config.yml' | |
get '/npi/:npi' do | |
content_type :json | |
{ exists: true }.to_json | |
end | |
# start the server if ruby file executed directly | |
run! if app_file == $0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment