@ -7,8 +7,12 @@
[ring.util.http-response :as response]
[schema.core :as s]))
(defn exception-handler [^Exception e data request]
(throw e))
(defn asciicasts-endpoint [{:keys [db file-server]}]
(api
{:exceptions {:handlers {:compojure.api.exception/default exception-handler}}}
(context
"/a" []
(GET "/:token.json" []