Move the handler into the right place

This commit is contained in:
Aaron Mueller 2014-09-27 17:24:44 +02:00
parent c8be5e4191
commit 991c601bf5
2 changed files with 2 additions and 18 deletions

View file

@ -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]))

View file

@ -4,3 +4,5 @@
"I don't do a whole lot." "I don't do a whole lot."
[x] [x]
(println x "Hello, World!")) (println x "Hello, World!"))
(def -main [])