some renaming

integration-tests
Josha von Gizycki 6 years ago
parent 691e1fa6d2
commit 7b4f3aeba5

@ -36,8 +36,8 @@
(hform/submit-button "Kama")
(anti-forgery-field))]))
(defroutes auth-routes
(defroutes routes
(GET "/login" [] login)
(POST "/login-check" [] login-check!)
(GET "/logout" [] (fn [_] (-> (redirect "/login")
(assoc :session nil)))))
(GET "/logout" [] (-> (redirect "/login")
(assoc :session nil))))

@ -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

@ -2,5 +2,5 @@
(:require [compojure.core :refer [defroutes GET]]
[wanijo.home.view :as home-view]))
(defroutes home-routes
(defroutes routes
(GET "/" [] home-view/root!))

@ -21,7 +21,7 @@
(domain/find-by-uuid! uuid)
session))
(defroutes schema-routes
(defroutes routes
(GET "/schema" [] view-schema/overview!)
(GET "/schema/:uuid" [uuid :as req] (show-schema! uuid (:session req)))
(POST "/schema/new" [] new!))

Loading…
Cancel
Save