(allow-cors shield)
access-control attributes for resources
access-control attributes for resources
(bad-request-response param-type)
response functions for known request problems
response functions for known request problems
(command-handler commands shield)
does two things, register commands and return yada handler
does two things, register commands and return yada handler
(handler resource)
common handler definition for all resources
common handler definition for all resources
(logger ctx)
logs exceptions, ignoring special status(422) exceptions
logs exceptions, ignoring special status(422) exceptions
(parse-schema-error ctx)
an attempt to make data specification errors friendlier
an attempt to make data specification errors friendlier
(public {:keys [path index-files directory]
:or {path "/" directory "public" index-files ["index.html"]}})
serves files - not meant to serve a website because a directory(/) request redirects to index.html rather than serving it directly, which is what a static file server(nginx) would do. This is helpful for development, and if you want a dynamic file server for some reason.
serves files - not meant to serve a website because a directory(/) request *redirects* to index.html rather than serving it directly, which is what a static file server(nginx) would do. This is helpful for development, and if you want a dynamic file server for some reason.
(require-login shield)
access-control attributes for resources
access-control attributes for resources
(schema-response param-type ctx)
note: clojure.spec.alpha errors are also rendered, this is used for the coercion that yada offers from prismatic schema
note: clojure.spec.alpha errors are also rendered, this is used for the coercion that yada offers from prismatic schema
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close