mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Shorten historical endpoint
This commit is contained in:
parent
5e9ab0f3d1
commit
9fb80af83e
@ -10,6 +10,6 @@ get '/latest' do
|
||||
jsonp Snapshot.last
|
||||
end
|
||||
|
||||
get '/historical/:date' do
|
||||
get '/:date' do
|
||||
jsonp Snapshot.new params[:date]
|
||||
end
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user