Skip to content

Instantly share code, notes, and snippets.

@makimoto
Created October 15, 2011 02:42
Show Gist options
  • Save makimoto/1288929 to your computer and use it in GitHub Desktop.
Save makimoto/1288929 to your computer and use it in GitHub Desktop.
風早君の存在の有無を返すAPI。
source :rubygems
gem 'sinatra'
require 'rubygems'
require 'sinatra'
require 'json'
get '/kazehaya' do
content_type :json
if params.member? 'exists'
true.to_json
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment