Compojure-api Api Documentation

Version: 2.0.0-alpha28

compojure.api.routes

->Route

(->Route path method info childs handler)

Positional factory function for class compojure.api.routes.Route.

all-paths

(all-paths routes)

fail-on-invalid-child-routes

(fail-on-invalid-child-routes handler invalid-childs)

filter-routes

(filter-routes {:keys [childs], :as handler} {:keys [invalid-routes-fn]})

get-routes

(get-routes handler)(get-routes handler options)

get-static-context-routes

(get-static-context-routes handler)(get-static-context-routes handler options)

log-invalid-child-routes

(log-invalid-child-routes handler invalid-childs)

map->Route

(map->Route m__7585__auto__)

Factory function for class compojure.api.routes.Route, taking a map of keywords to field values.

non-nil-routes

(non-nil-routes endpoint)

path-for

macro

(path-for route-name & [params])

Extracts the lookup-table from request and finds a route by name.

path-for*

(path-for* route-name request & [params])

Extracts the lookup-table from request and finds a route by name.

ring-swagger-paths

(ring-swagger-paths routes)

route-lookup-table

(route-lookup-table routes)

Routing

protocol

members

-get-routes

(-get-routes handler options)