 
 ;; View layer
 ;; FIXME: Extract View layer to separate namespace
-(def current-user "user2")
+
 
 (defn render [t]
   (reduce str t))

        org.httpkit.server)
  (:gen-class))

(log/set-config! [:appenders :spit :enabled?] true)
(log/set-config! [:shared-appender-config :spit-filename] (env :log-file-path))


  (model/whole-user-data current-user)
)

(defn mark-as-completed
  ([recommendation]
   (log/info "user: " current-user "mark-as-completed recommendation:" recommendation)
   (model/mark-as-completed current-user recommendation)
   {:status 302
    :headers {"Location" "/"}
    :body ""})
  ([user recommendation]
   (log/info "user: " user "mark-as-completed recommendation:" recommendation)
   (model/mark-as-completed user recommendation)
   (response nil))
  )

;; End of view layer

(defroutes recommendation-routes
