|
|
|
@ -6,9 +6,9 @@
|
|
|
|
|
:refer [wrap-defaults site-defaults]]
|
|
|
|
|
[ring.util.response :as rur]
|
|
|
|
|
[ring.middleware.session.cookie :as session-cookie]
|
|
|
|
|
[wanijo.home.routes :refer [home-routes]]
|
|
|
|
|
[wanijo.schema.routes :refer [schema-routes]]
|
|
|
|
|
[wanijo.framework.auth :refer [auth-routes]]
|
|
|
|
|
[wanijo.home.routes :as home-routes]
|
|
|
|
|
[wanijo.schema.routes :as schema-routes]
|
|
|
|
|
[wanijo.framework.auth :as auth]
|
|
|
|
|
[wanijo.framework.devmode :as devmode]))
|
|
|
|
|
|
|
|
|
|
(defn- wrap-login-redirect [handler]
|
|
|
|
@ -18,10 +18,10 @@
|
|
|
|
|
(rur/redirect "/login"))))
|
|
|
|
|
|
|
|
|
|
(defroutes app-routes
|
|
|
|
|
(routes auth-routes)
|
|
|
|
|
(routes auth/routes)
|
|
|
|
|
(wrap-login-redirect
|
|
|
|
|
(routes home-routes
|
|
|
|
|
schema-routes))
|
|
|
|
|
(routes home-routes/routes
|
|
|
|
|
schema-routes/routes))
|
|
|
|
|
(route/not-found "Not Found"))
|
|
|
|
|
|
|
|
|
|
(def app
|
|
|
|
|