Fix route syntax

This commit is contained in:
Hakan Ensari 2017-06-14 22:25:47 +01:00
parent 90146aa630
commit 0e0d1374e8

View File

@ -61,7 +61,7 @@ get '/latest' do
jsonp quote.to_h jsonp quote.to_h
end end
get(/(?<date>\d{4}-\d{2}-\d{2})/) do get '/(?<date>\d{4}-\d{2}-\d{2})', mustermann_opts: { type: :regexp } do
last_modified quote.date last_modified quote.date
jsonp quote.to_h jsonp quote.to_h
end end