fix standalone-app

integration-tests
Josha von Gizycki 6 years ago
parent c180f7dcf1
commit cbf0e5842b

@ -7,15 +7,17 @@
[ring.util.response :as rur] [ring.util.response :as rur]
[ring.middleware.session.cookie :as session-cookie] [ring.middleware.session.cookie :as session-cookie]
[wanijo.home.routes :as home-routes] [wanijo.home.routes :as home-routes]
[wanijo.schema.routes :as schema-routes] [wanijo.schema
[wanijo.schema.middleware :as schema-middleware] [routes :as schema-routes]
[middleware :as schema-middleware]]
[wanijo.user.routes :as user-routes] [wanijo.user.routes :as user-routes]
[wanijo.attribute.routes :as attr-routes] [wanijo.attribute.routes :as attr-routes]
[wanijo.instance.routes :as instance-routes] [wanijo.instance.routes :as instance-routes]
[wanijo.visualisation.routes :as vis-routes] [wanijo.visualisation.routes :as vis-routes]
[wanijo.framework.auth :as auth] [wanijo.framework
[wanijo.framework.devmode :as devmode] [auth :as auth]
[wanijo.framework.routing :refer [path]])) [devmode :as devmode]
[routing :refer [path]]]))
(defn- wrap-login-redirect [handler] (defn- wrap-login-redirect [handler]
(fn [req] (fn [req]
@ -38,7 +40,7 @@
(-> app-routes (-> app-routes
devmode/wrap-devmode devmode/wrap-devmode
schema-middleware/wrap-user-schemas schema-middleware/wrap-user-schemas
wrap-defaults)) (wrap-defaults site-defaults)))
(def app (def app
(-> app-routes (-> app-routes

Loading…
Cancel
Save