             [ring.adapter.jetty :as jetty]
             [just-married.language :refer [detect-language]]
             [just-married.shared :refer [available-languages]]
-            [compojure.core :refer [defroutes GET POST]]
-            [environ.core :refer [env]]
             [just-married
              [settings :as settings]
              [pages :as pages]

      (assoc :session (dissoc session :identity))))

(defn enter-page
  [request]
  (let [language (get-language request)]
    (render-page :initial {:language language})))

(defn main-page
  [request]


(defroutes app-routes
  (GET "/" request (enter-page request))
  (GET "/rvsp" request (enter-page request :redirect-to "rvsp"))
  (POST "/notify" request (notify request))
  ;; do a redirect adding the extra information
  (GET "/main" request (main-page request))
