mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
Match date
This commit is contained in:
parent
e80a0e00a3
commit
043dd4d4be
@ -22,14 +22,11 @@ get '/' do
|
|||||||
redirect 'http://fixer.io'
|
redirect 'http://fixer.io'
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/favicon.ico' do
|
|
||||||
halt 404
|
|
||||||
end
|
|
||||||
|
|
||||||
get '/latest' do
|
get '/latest' do
|
||||||
jsonp snapshot
|
jsonp snapshot
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/:date' do
|
get %r{([\d-]+)} do |date|
|
||||||
|
params[:date] = date
|
||||||
jsonp snapshot
|
jsonp snapshot
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user