From b2ca684634d9c6b6b6c03b046d8241782754fa17 Mon Sep 17 00:00:00 2001 From: Daniel Leong Date: Sun, 11 Nov 2018 16:32:15 -0500 Subject: [PATCH] Add routing for DM screens ("campaigns") Refs #69 --- src/cljs/wish/routes.cljs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cljs/wish/routes.cljs b/src/cljs/wish/routes.cljs index a7d8b93c..a7e0e5d9 100644 --- a/src/cljs/wish/routes.cljs +++ b/src/cljs/wish/routes.cljs @@ -12,6 +12,15 @@ (defroute "/" [] (navigate! :home)) + (defroute "/campaigns" [] + (navigate! :campaign-browser)) + + (defroute "/campaigns/new" [] + (navigate! :new-campaign)) + + (defroute #"/campaigns/([a-z0-9-]+/[^/]+)" [id] + (navigate! :campaign (keyword id))) + (defroute "/sheets" [] (navigate! :sheet-browser))