   (POST "/projections" request (api/post-projection!
                                 (:stm @own-stream)
                                 (:body request)))
-  (POST "/event" request (api/post-event!
-                          (:stm @own-stream)
-                          (json/parse-string (:body request) true)))
+  (capi/POST* "/event" request (api/post-event!
+                                (:stm @own-stream)
+                                (json/parse-string (:body request) true)))
   (POST "/event/:stream-name" request
         (api/post-event! (:stm @own-stream) (:body request)))
   (route/not-found "Not Found"))

                            (default-db))]
    (dosync (alter own-stream (fn [_] ms)))))

(defroutes app-routes
  (GET "/startup" []
       (if (nil? @own-stream)
         (do
           (figwheel-main)

(capi/defapi app
  (capi/swagger-ui)
  (capi/swagger-docs)
  (capi/GET* "/ui" []
       :no-doc true
       (response/resource-response "index.html" {:root "public/ui"}))
  (route/resources "/")
  (context "/ws" []
           (routes (rjson/wrap-json-body (pms/wrap-params (site ws-routes))
