Liking cljdoc? Tell your friends :D

missinterpret.flows.pedestal.route-builder


funcclj

(func r)

has-options?clj

(has-options? r)

new-routeclj

(new-route p-route interceptor)

optionsclj

(options r)

Returns the route-name or constraints options in a map when present

Returns the route-name or constraints options in a map
when present
raw docstring

route-idclj

(route-id r)

Returns the name of the route

Returns the name of the route
raw docstring

route-lengthclj

(route-length route-definition)

Returns the complexity of the route: :first

  • minimum route
  • ["/users" :get view-users] :second
  • Has either a route name or constraints
  • Route Name: ["/user" :get view-user :route-name :view-user-profile]
  • Constraints: ["/user/:user-id" :get view-user :constraints {:user-id #"[0-9]+"}] :third
  • Hash both a route name and constraints
  • ["/user/:user-id" :get view-user :route-name :view-user-profile :constraints {:user-id #"[0-9]+"}]
Returns the complexity of the route:
:first
  - minimum route
  - ["/users" :get view-users]
:second
  - Has either a route name or constraints
  - Route Name: ["/user" :get view-user :route-name :view-user-profile]
  - Constraints: ["/user/:user-id" :get view-user :constraints {:user-id #"[0-9]+"}]
:third
  - Hash both a route name and constraints
  - ["/user/:user-id" :get view-user :route-name :view-user-profile :constraints {:user-id #"[0-9]+"}]
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close