Fixing the Router for the exmaple.
This commit is contained in:
@ -103,13 +103,11 @@ pub enum Page
|
||||
#[route("/")]
|
||||
Home {},
|
||||
|
||||
// #[nest("/blog")]
|
||||
#[child("/blog")]
|
||||
Bard
|
||||
{
|
||||
child: bard::Page
|
||||
},
|
||||
// #[end_nest]
|
||||
#[child("/blog")]
|
||||
Bard
|
||||
{
|
||||
child: bard::Page
|
||||
},
|
||||
|
||||
#[route("/:..route")]
|
||||
PageNotFound { route: Vec<String> }
|
||||
|
||||
Reference in New Issue
Block a user