README.md in rack-app-3.4.0 vs README.md in rack-app-3.5.0
- old
+ new
@@ -113,10 +113,12 @@
require 'rack/app'
class App < Rack::App
+ apply_extensions :front_end
+
mount SomeAppClass
headers 'Access-Control-Allow-Origin' => '*',
'Access-Control-Expose-Headers' => 'X-My-Custom-Header, X-Another-Custom-Header'
@@ -143,11 +145,10 @@
desc 'some endpoint that has error and will be rescued'
get '/make_error' do
raise(StandardError,'error block rescued')
end
-
def say
"hello #{params['user_id']}!"
end
error StandardError, NoMethodError do |ex|
@@ -262,6 +263,6 @@
Bug reports and pull requests are welcome on GitHub at https://github.com/adamluzsi/rack-app.rb This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
## License and Copyright
Rack::App is free software released under the [Apache License V2](https://opensource.org/licenses/Apache-2.0) License.
-The logo was designed by Zsófia Gebauer. It is Copyright © 2015 Adam Luzsi. All Rights Reserved.
\ No newline at end of file
+The logo was designed by Zsófia Gebauer. It is Copyright © 2015 Adam Luzsi. All Rights Reserved.