lib/roda/plugins/static_routing.rb in roda-3.56.0 vs lib/roda/plugins/static_routing.rb in roda-3.57.0
- old
+ new
@@ -48,10 +48,10 @@
# As shown above, you can use Roda's routing tree methods inside the
# static_route block to have shared behavior for different request methods,
# while still handling the request methods differently.
module StaticRouting
def self.load_dependencies(app)
- app.plugin :hash_routes
+ app.plugin :hash_paths
end
module ClassMethods
# Add a static route for any request method. These are
# tried after the request method specific static routes (e.g.