Skip to content

Commit 917ef1c

Browse files
author
Yogthos
committed
switch to use a var in route definition
1 parent 4f42d65 commit 917ef1c

File tree

1 file changed

+4
-1
lines changed
  • libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/routes

1 file changed

+4
-1
lines changed

libs/deps-template/resources/io/github/kit_clj/kit/src/clj/web/routes/api.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
:swagger {:info {:title "<<ns-name>> API"}}
3939
:handler (swagger/create-swagger-handler)}}]
4040
["/health"
41-
{:get health/healthcheck!}]])
41+
;; note that use of the var is necessary
42+
;; for reitit to reload routes without
43+
;; restarting the system
44+
{:get #'health/healthcheck!}]])
4245

4346
(derive :reitit.routes/api :reitit/routes)
4447

0 commit comments

Comments
 (0)