   (route/resources "/")
   (route/not-found "Not Found"))
 
-(def auth-backend (jwe-backend {:secret config/token-secret
+(def auth-backend (jwe-backend {:secret secret
                                 :options {:alg :a256kw :enc :a128gcm}}))
 
 (defn basic-authenticated?

                             [ssl :refer [wrap-ssl-redirect wrap-forwarded-scheme]])
            [hiccup.core :as h]
            [clj-time.core :as time]
            [buddy.sign.jwe :as jwe]
            [buddy.auth :refer [authenticated? throw-unauthorized]]
            [buddy.auth.backends.token :refer [jwe-backend]]
            [buddy.auth.middleware :refer [wrap-authentication wrap-authorization]]

        [amazonica.aws.s3]
        [amazonica.aws.s3transfer :exclude [upload]])
  (:gen-class))

(def secret (nonce/random-bytes 32))

(defn ok [d] {:status 200 :body d})
(defn bad-request [d] {:status 400 :body d})
