Move the handler into the right place
This commit is contained in:
parent
c8be5e4191
commit
991c601bf5
2 changed files with 2 additions and 18 deletions
18
handler.clj
18
handler.clj
|
@ -1,18 +0,0 @@
|
|||
(ns luduverse.handler
|
||||
(:require [compojure.core :refer [defroutes]]
|
||||
[compojure.route :as route]
|
||||
[noir.util.middleware :as middleware]))
|
||||
|
||||
(defroutes core-routes
|
||||
(route/resources "/")
|
||||
(route/not-found "Nothing here ..."))
|
||||
|
||||
(defn init [])
|
||||
|
||||
(defn destroy [])
|
||||
|
||||
(def app (middleware/app-handler
|
||||
[app-routes]
|
||||
:middleware []
|
||||
:access-rules []
|
||||
:formats [:json-kw :edn]))
|
|
@ -4,3 +4,5 @@
|
|||
"I don't do a whole lot."
|
||||
[x]
|
||||
(println x "Hello, World!"))
|
||||
|
||||
(def -main [])
|
||||
|
|
Loading…
Reference in a new issue