          :body "oops"}))
     {:status 401}))
 
-
 (defn objective-view [{:keys [t' locale] :as request}]
   (let [username (get (friend/current-authentication) :username)
         objective (storage/retrieve "d-cent-test" (-> request :route-params :id))]

                                 :doc-title (t' :index/doc-title)
                                 :doc-description (t' :index/doc-description)
                                 :signed-in (when username true)})))



(defn sign-in [{:keys [t' locale]}]
  (let [username (get (friend/current-authentication) :username)]

               :sign-in sign-in
               :sign-out sign-out
               :email-capture-get  (friend/wrap-authorize email-capture-get #{:signed-in})
               :email-capture-post (wrap-api-authorize email-capture-post #{:signed-in})
               :objective-create   (friend/wrap-authorize objective-create #{:signed-in})
               :objective-create-post objective-create-post
               :objective-view objective-view })

(def routes
