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.clj7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pics/routes.clj b/src/pics/routes.clj
index a10ab95..31edd63 100644
--- a/src/pics/routes.clj
+++ b/src/pics/routes.clj
@@ -3,11 +3,14 @@
[ring.middleware.multipart-params :as rmmultiparams]
[pics.handler.home :as phhome]
- [pics.handler.upload :as phupload]))
+ [pics.handler.upload :as phupload]
+ [pics.handler.view :as phview]))
(def ^:private router
(rring/router [["/" {:get {:handler phhome/handle}}]
- ["/upload" {:post {:handler phupload/handle}}]]))
+ ["/api/upload" {:post {:handler phupload/handle}}]
+ ["/src/:file-name" {:get {:handler phview/handle-src}}]
+ ["/:id" {:get {:handler phview/handle}}]]))
(def ring-handler
(-> router