CrossClj

0.2.3 docs

SourceDocs



RECENT
    VARS
    ->MetadataAPIRouter
    map->MetadataAPIRouter
    metadata-api-router

    « Index of all namespaces of this project

    API router (instance of IAPIRouter) that uses function metadata to
    determine valid API handler functions.
    
    Any Clojure function with the :api metadata key is a valid API
    handler. When given an API call message, the handler will execute
    any such function.
    
    prefix will be prepended to API callers' requests, to restrict
    their scope. For example, if your API handlers are all in
    foo.bar.api-handlers (e.g. foo.bar.api-handlers/some-function,
    foo.bar.api-handlers/other-function, and so on), you can supply a
    prefix of "foo.bar.api-handlers/", and clients then supply
    "some-function" and "other-function" as their calls. (Don't
    forget the trailing slash!)
    (metadata-api-router prefix)
    Returns a new MetadataAPIRouter. The given prefix will be prepended
    to all API call namespace lookups.