CrossClj

2.0.0-alpha20 docs

SourceDocs



RECENT
    VARS
    ANY
    context
    defroutes
    DELETE
    GET
    HEAD
    let-routes
    OPTIONS
    PATCH
    POST
    PUT
    ring-handler
    route-middleware
    routes
    undocumented

    « Index of all namespaces of this project

    macro
    (ANY & args)
    macro
    (context & args)
    macro
    (defroutes name & routes)
    Define a Ring handler function from a sequence of routes.
    The name may optionally be followed by a doc-string and metadata map.
    macro
    (DELETE & args)
    macro
    (GET & args)
    macro
    (HEAD & args)
    macro
    (let-routes bindings & body)
    Takes a vector of bindings and a body of routes.
    
    Equivalent to: `(let [...] (routes ...))`
    macro
    (OPTIONS & args)
    macro
    (PATCH & args)
    macro
    (POST & args)
    macro
    (PUT & args)
    (ring-handler handler)
    Creates vanilla ring-handler from any invokable thing (e.g. compojure-api route)
    
    (route-middleware middleware & body)
    Wraps routes with given middlewares using thread-first macro.
    
    (routes & handlers)
    Create a Ring handler by combining several handlers into one.
    
    (undocumented & handlers)
    Routes without route-documentation. Can be used to wrap routes,
    not satisfying compojure.api.routes/Routing -protocol.