aboutsummaryrefslogtreecommitdiff
path: root/src/pics/routes.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/pics/routes.clj')
-rw-r--r--src/pics/routes.clj10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pics/routes.clj b/src/pics/routes.clj
new file mode 100644
index 0000000..67793f9
--- /dev/null
+++ b/src/pics/routes.clj
@@ -0,0 +1,10 @@
+(ns pics.routes
+ (:require [reitit.ring :as rring]
+
+ [pics.handler.home :as phhome]))
+
+(def ^:private router
+ (rring/router [["/" {:get {:handler phhome/handle}}]]))
+
+(def ring-handler
+ (rring/ring-handler router))