parent
88213b8d5d
commit
ee21f5f7c1
@ -1,9 +1,7 @@
|
|||||||
(ns wanijo.home.routes
|
(ns wanijo.home.routes
|
||||||
(:require [compojure.core :refer [defroutes GET]]
|
(:require [compojure.core :refer [defroutes GET]]
|
||||||
[wanijo.framework.routing :refer [register]]
|
[wanijo.framework.routing :refer [register!]]
|
||||||
[wanijo.home.view :as home-view]))
|
[wanijo.home.view :as home-view]))
|
||||||
|
|
||||||
(register :home "/")
|
|
||||||
|
|
||||||
(defroutes routes
|
(defroutes routes
|
||||||
(GET "/" [] home-view/root!))
|
(GET (register! :home "/") [] home-view/root!))
|
||||||
|
Loading…
Reference in new issue