CrossClj

1.1.44 docs

SourceDocs



RECENT
    VARS
    map->resource
    routes

    « Index of all namespaces of this project

    Augment routing models
    
    (map->resource m)
    (routes routes & [{:keys [pre post], :or {pre identity, post identity}}])
    Process a route structure, interpretting any 'naked' maps in the
    Matched position as resource-models and converting them into
    resources. A pre-processing function can be provided that will be
    called on each naked map prior to the map being turned into a
    resource (with consequent schema checking). A post-processing
    function can also be provided that will post-process the actual
    resource records, after the schema check.