module Roda::RodaPlugins::StaticRouting::ClassMethods
Public Instance Methods
Source
# File lib/roda/plugins/static_routing.rb, line 62 def static_route(path, &block) hash_path(:static_routing, path, &block) end
Add a static route for any request method. These are tried after the request method specific static routes (e.g. static_get), but allow you to use Roda’s routing tree methods inside the route for handling shared behavior while still allowing request method specific handling.