Fix some problems with the new ring lib

This commit is contained in:
Aaron Mueller 2014-01-19 01:11:14 +01:00
parent 353aeb6907
commit 47356a82c8
2 changed files with 5 additions and 12 deletions

3
dev/user.clj Normal file
View file

@ -0,0 +1,3 @@
(ns user)
;; Place some code for the repl here

View file

@ -12,12 +12,7 @@
(route/resources "/")
(route/not-found "Not Found"))
(defn init
"init will be called once when
app is deployed as a servlet on
an app server such as Tomcat
put any initialization code here"
[]
(defn init []
(timbre/set-config!
[:appenders :rotor]
{:min-level :info
@ -33,10 +28,7 @@
(if-not (schema/initialized?) (schema/create-tables))
(timbre/info "ldview started successfully"))
(defn destroy
"destroy will be called when your application
shuts down, put any clean up code here"
[]
(defn destroy []
(timbre/info "ldview is shutting down..."))
(def app (middleware/app-handler
@ -50,5 +42,3 @@
;; available formats:
;; :json :json-kw :yaml :yaml-kw :edn :yaml-in-html
:formats [:json-kw :edn]))
(def war-handler (middleware/war-handler app))