Functions to more easily define resources at runtime
Functions to more easily define resources at runtime
(bundle groups default-decisions)
Create one function which will combine the work of resource-route, resources, and merge-decisions
Create one function which will combine the work of resource-route, resources, and merge-decisions
(merge-decisions defaults decisions)
This allows you to define your resource configurations more compactly by merging them with a map of decision defaults
This allows you to define your resource configurations more compactly by merging them with a map of decision defaults
(resource-route path resources & {:keys [entry-key] :or {entry-key ":id"}})
Creates routes, assumes that your resources are grouped into :collection and :entry
Creates routes, assumes that your resources are grouped into :collection and :entry
(resources decision-groups decisions)
(resources {:collection [:list :create]} {})
(resources {:collection [:list :create]} {})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close