Skip to content

Instantly share code, notes, and snippets.

@vitaly-pushkar
Last active November 5, 2015 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitaly-pushkar/7e3715c8cc99388cbec6 to your computer and use it in GitHub Desktop.
Save vitaly-pushkar/7e3715c8cc99388cbec6 to your computer and use it in GitHub Desktop.
;; src/clj/me/front-office/handlers.clj
(ns me.front-office.handlers)
(defn me [] ...)
(defn login [] ...)
(defn logout [] ...)
;;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