lib/rack/app/singleton_methods/mounting.rb in rack-app-5.0.0.rc1 vs lib/rack/app/singleton_methods/mounting.rb in rack-app-5.0.0.rc2
- old
+ new
@@ -38,21 +38,18 @@
def serve_files_from(file_path, options={})
file_server = Rack::App::FileServer.new(Rack::App::Utils.expand_path(file_path))
request_path = Rack::App::Utils.join(@namespaces, options[:to], '**', '*')
router.register_endpoint!('GET', request_path, file_server, route_registration_properties)
- @last_description = nil
end
def mount_rack_based_application(rack_based_app, options={})
router.register_endpoint!(
- ::Rack::App::Constants::HTTP::ANY,
+ ::Rack::App::Constants::HTTP::METHOD::ANY,
Rack::App::Utils.join(@namespaces, options[:to], ::Rack::App::Constants::RACK_BASED_APPLICATION),
rack_based_app,
route_registration_properties
)
-
- @last_description = nil
end
alias mount_app mount_rack_based_application
protected