Skip to content

Instantly share code, notes, and snippets.

@kiote
Created August 5, 2014 14:42
Show Gist options
  • Save kiote/dcb4ccb898a7180278ff to your computer and use it in GitHub Desktop.
Save kiote/dcb4ccb898a7180278ff to your computer and use it in GitHub Desktop.
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