Shorten historical endpoint

This commit is contained in:
Hakan Ensari 2012-11-20 22:24:14 +00:00
parent 5e9ab0f3d1
commit 9fb80af83e
2 changed files with 4 additions and 3 deletions

View File

@ -10,6 +10,6 @@ get '/latest' do
jsonp Snapshot.last
end
get '/historical/:date' do
get '/:date' do
jsonp Snapshot.new params[:date]
end

View File

@ -74,7 +74,8 @@
<section class="doc">
<p>
Get the latest foreign exchange reference rates.
Get the latest foreign exchange reference rates, quoted against the
euro.
</p>
</section>
<section class="sample">
@ -90,7 +91,7 @@
</section>
<section class="sample">
<code>
curl http://fixer.io/historical/2000-01-03
curl http://fixer.io/2000-01-03
</code>
</section>