Add routing test and make ns name consistent

This commit is contained in:
Gabriel Horner
2022-12-09 17:23:22 -05:00
committed by Gabriel Horner
parent b4f26a5c7b
commit 6e0dea3f2c
7 changed files with 61 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
(:require [rum.core :as rum]
[frontend.handler :as handler]
[frontend.handler.plugin :as plugin-handler]
[frontend.handler.route :as route]
[frontend.handler.route :as route-handler]
[frontend.page :as page]
[frontend.routes :as routes]
[frontend.spec]
@@ -20,7 +20,7 @@
(rfe/start!
(rf/router routes/routes nil)
(fn [route]
(route/set-route-match! route)
(route-handler/set-route-match! route)
(plugin-handler/hook-plugin-app
:route-changed (select-keys route [:template :path :parameters])))