From 5780caa698ee9e2c3ebcfc38fa7681b8cab5947f Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 7 Jan 2015 22:09:04 -0500 Subject: [PATCH] rename wrap-checks --- src/clj_webtoolbox/routes/checked.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj_webtoolbox/routes/checked.clj b/src/clj_webtoolbox/routes/checked.clj index 6936663..243b2e8 100644 --- a/src/clj_webtoolbox/routes/checked.clj +++ b/src/clj_webtoolbox/routes/checked.clj @@ -23,7 +23,7 @@ (-> (response/content "Route checks did not all pass.") (response/status 500))) -(defmacro wrap-checks +(defmacro checked-routes "Wraps a handler (e.g. subset of routes) with one or more filters ('checks') which are run before to handler is run. If any of the filters return nil, fail-response is returned by the server instead of running the wrapped handler. Filter functions