Last active
November 5, 2015 20:06
-
-
Save vitaly-pushkar/7e3715c8cc99388cbec6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; src/clj/me/front-office/handlers.clj | |
(ns me.front-office.handlers) | |
(defn me [] ...) | |
(defn login [] ...) | |
(defn logout [] ...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;src/cljc/me/routes.cljc | |
(ns me.routes | |
(:require [domkm.silk :as silk] | |
[domkm.silk.serve :as silk.serve] | |
[me.front-office.handlers :as front-handlers])) | |
(defn front-office-routes [] | |
(silk/routes [[front-handlers/logged-out-landing [[]]] | |
[front-handlers/me [["me"] {} (silk.serve/GET)]] | |
[front-handlers/login [["login"] {} (silk.serve/POST)]] | |
[front-handlers/logout [["logout"] {} (silk.serve/POST)]]])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment