module Roda::RodaPlugins::StaticRouting::ClassMethods

  1. lib/roda/plugins/static_routing.rb


Public Instance

  1. static_route

Public Instance methods

static_route(path, &block)

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.

[show source]
   # File lib/roda/plugins/static_routing.rb
62 def static_route(path, &block)
63   hash_path(:static_routing, path, &block)
64 end