diff options
Diffstat (limited to 'webapp/src/routing.rs')
-rw-r--r-- | webapp/src/routing.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/src/routing.rs b/webapp/src/routing.rs new file mode 100644 index 0000000..e451791 --- /dev/null +++ b/webapp/src/routing.rs @@ -0,0 +1,13 @@ +use yew_router::prelude::*; +use uuid::Uuid; + +#[derive(Clone, Routable, PartialEq)] +pub enum Route { + #[at("/")] + Home, + #[at("/playground")] + Playground, + #[at("/table/:id")] + Table { id: Uuid }, +} + |