Match date

This commit is contained in:
hakanensari 2014-03-14 15:13:09 +00:00
parent e80a0e00a3
commit 043dd4d4be

View File

@ -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