|
||||
---|---|---|---|---|
public | 46d58a4053 | 10 anni fa | ||
views | 46d58a4053 | 10 anni fa | ||
.DS_Store | 46d58a4053 | 10 anni fa | ||
.gitignore | 46d58a4053 | 10 anni fa | ||
.ruby-version | 66912bc157 | 10 anni fa | ||
Gemfile | 4be67e5e01 | 10 anni fa | ||
Gemfile.lock | 4be839c472 | 10 anni fa | ||
README.md | 530a8f7ecd | 13 anni fa | ||
config.ru | 258fa8ee48 | 13 anni fa | ||
json_parser.rb | 46d58a4053 | 10 anni fa | ||
main.rb | 46d58a4053 | 10 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