diff --git a/lib/app.rb b/lib/app.rb index e51a01e..283d13e 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -28,7 +28,7 @@ helpers do end get '/' do - File.read File.join 'public', 'index.html' + redirect 'http://fixer.io' end get '/latest' do diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index e0dd2e7..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 0e853a7..0000000 --- a/public/index.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Fixer - - - - - -
-
-

Fixer: A JSON API for exchange rates

-
- -

- Get the latest foreign exchange reference rates, quoted against the - euro. -

- - curl http://api.fixer.io/latest - - -

- Get historical rates for any day since 1999. -

- - curl http://api.fixer.io/2000-01-03 - - -

- Quote against a currency by setting the base parameter - in your request. -

- - curl http://api.fixer.io/latest?base=USD - - -

- Request specific exchange rates by setting the - symbols or currencies parameter. -

- - curl http://api.fixer.io/latest?symbols=USD,GBP - - -

- Make cross-domain JSONP requests. -

- - curl http://api.fixer.io/latest?callback=myCallback - - -

- HTTPS endpoints are available. -

- - curl https://api.fixer.io/latest - - -

- Exchange rates are usually updated by 3pm CET. -

- - -
- -