Several pages [wip]
- Be able to set a name
This commit is contained in:
parent
6aa9bb0e43
commit
9c0286b55a
4 changed files with 45 additions and 41 deletions
|
@ -12,10 +12,12 @@ use wasm_bindgen_futures::spawn_local;
|
|||
use yew::prelude::*;
|
||||
use yew_router::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Routable)]
|
||||
#[derive(Routable, PartialEq, Eq, Clone, Debug)]
|
||||
pub enum Route {
|
||||
#[at("/")]
|
||||
LockWatch,
|
||||
// #[at("/")]
|
||||
// LockWatch,
|
||||
#[at("/:id")]
|
||||
LockWatch { id: u64 },
|
||||
#[not_found]
|
||||
#[at("/404")]
|
||||
NotFound,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue