Module: Roda::RodaPlugins::Wedge::RequestClassMethods
- Defined in:
- lib/roda/plugins/wedge.rb
Instance Method Summary collapse
Instance Method Details
#wedge_route_regex ⇒ Object
43 44 45 46 47 48 |
# File 'lib/roda/plugins/wedge.rb', line 43 def wedge_route_regex assets_url = ::Wedge.assets_url.gsub(%r{^\/}, '') # # We also allow for no assets key so when we post server methods there # # isn't an error if the key has been changed since a browser refresh. %r{(?:#{assets_url}|#{assets_url.sub("#{::Wedge.config.assets_key}/", '')})/(.*)\.(.*)$} end |