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'
|
||||
end
|
||||
|
||||
get '/favicon.ico' do
|
||||
halt 404
|
||||
end
|
||||
|
||||
get '/latest' do
|
||||
jsonp snapshot
|
||||
end
|
||||
|
||||
get '/:date' do
|
||||
get %r{([\d-]+)} do |date|
|
||||
params[:date] = date
|
||||
jsonp snapshot
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user