|
||||
---|---|---|---|---|
public | 09466a99dc | 13 年之前 | ||
views | 928eabf0ec | 13 年之前 | ||
.gitignore | 3940d3c7fa | 13 年之前 | ||
Gemfile | c0d31fff75 | 13 年之前 | ||
Gemfile.lock | c0d31fff75 | 13 年之前 | ||
README.md | 530a8f7ecd | 13 年之前 | ||
config.ru | 258fa8ee48 | 13 年之前 | ||
dump.rdb | ab76600734 | 13 年之前 | ||
main.rb | a76a97ae19 | 13 年之前 |
WhoIz is a simple WHOIS lookup application. It's built on Sinatra and Heroku friendly.
JSON
curl http://whoiz.herokuapp.com/lookup.json?url=yahoo.com
Browser
http://whoiz.herokuapp.com
http://whoiz.herokuapp.com/lookup?url=yahoo.com
git clone git://github.com/okor/whoiz.git
Edit
main.rb
Change this
before do
response['Access-Control-Allow-Origin'] = '*'
end
To this
before do
response['Access-Control-Allow-Origin'] = 'http://yourwebsite.com'
end
heroku create
git push heroku master
heroku open