                             (default-db))]
     (dosync (alter own-stream (fn [_] ms)))))
 
-(defroutes app-routes
-  (GET "/startup" []
+(capi/defroutes* app-routes
+  (capi/GET* "/startup" []
+       :no-doc true
        (if (nil? @own-stream)
          (do
            (figwheel-main)

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

  (POST "/projections" request (api/post-projection!
                                (:stm @own-stream)
                                (:body request)))
  (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"))
