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