Liking cljdoc? Tell your friends :D
Clojure only.

io.pedestal.http.route.definition.table


table-routesclj

(table-routes routes)
(table-routes opts routes)

Constructs table routes.

The standard constructor is an options map and then a seq (a list or a set) of route vectors.

The single parameter constructor looks for the first map as the options, then any other vectors are the routes.

The options map may have keys :app-name, :host, :port, :scheme, :interceptors, and :verbs. The first four set the corresponding route keys of the routes; the :verbs key specifies the allowed verbs for the routes.

The :interceptors option are a seq of interceptors that are prefixed to any interceptors specified in a route.

Constructs table routes.

The standard constructor is an options map and then a seq (a list or a set) of route vectors.

The single parameter constructor looks for the first map as the options, then any other vectors
are the routes.

The options map may have keys :app-name, :host, :port, :scheme, :interceptors, and :verbs.  The first four
set the corresponding route keys of the routes; the :verbs key specifies the allowed verbs for
the routes.

The :interceptors option are a seq of interceptors that are prefixed to any interceptors specified in a route.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close