|
|
||||
|---|---|---|---|---|
| public | 09466a99dc | 13 anni fa | ||
| views | 928eabf0ec | 13 anni fa | ||
| .gitignore | 3940d3c7fa | 13 anni fa | ||
| Gemfile | c0d31fff75 | 13 anni fa | ||
| Gemfile.lock | c0d31fff75 | 13 anni fa | ||
| README.md | 530a8f7ecd | 13 anni fa | ||
| config.ru | 258fa8ee48 | 13 anni fa | ||
| dump.rdb | ab76600734 | 13 anni fa | ||
| main.rb | a76a97ae19 | 13 anni fa | ||
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