   (simple-response "blah"))
 
 (defn email-capture-post [request]
-  (if (friend/authorized? #{:signed-in} friend/*identity*)
-    {:status 200}
-    {:status 401}))
+  {:status 200})
 
 (defn new-objective-link [stored-objective]
   (str utils/host-url "/objectives/" (:_id stored-objective)))
-
 
 (defn objective-new-link-page [{:keys [t' locale]} stored-objective]
   (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 email-capture-post
               :objective-create   (friend/wrap-authorize objective-create #{:signed-in})
               :objective-create-post (-> objective-create-post wrap-keyword-params wrap-params)
               :objective-view objective-view })

(def routes

            [d-cent.utils :as utils]
            [d-cent.workflows.twitter :refer [twitter-workflow]]))

;; Custom ring middleware

(defn wrap-api-authorize [handler roles]
  (fn [request]
    (if (friend/authorized? roles friend/*identity*)
      (handler request)
      {:status 401})))

;; Handlers

(defn index [{:keys [t' locale]}]
  (let [username (get (friend/current-authentication) :username)]
  (rendered-response index-page {:translation t'
