diff --git a/lib/api.rb b/lib/api.rb index 1d8f2d4..0c01e2f 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -61,7 +61,7 @@ get '/latest' do jsonp quote.to_h end -get(/(?\d{4}-\d{2}-\d{2})/) do +get '/(?\d{4}-\d{2}-\d{2})', mustermann_opts: { type: :regexp } do last_modified quote.date jsonp quote.to_h end