forked from TheSimpleAIProject/SimpleAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.rs
More file actions
36 lines (34 loc) · 996 Bytes
/
router.rs
File metadata and controls
36 lines (34 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pub mod core {
use super::super::{
components::{heading_layout::HeadingLayout, top_nav::TopNavLayout},
pages::prelude::*,
};
use crate::utils::*;
#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
pub enum Route {
#[layout(TopNavLayout)]
#[route("/")]
Start {},
#[end_nest]
#[nest("/projects")]
#[layout(HeadingLayout)]
#[route("/")]
Projects {},
#[route("/projects_nav")]
ProjectNav {},
#[route("/edit")]
Edit {},
#[end_layout]
#[route("/editor")]
Editor {},
#[end_nest]
#[layout(HeadingLayout)]
#[nest("/new")]
#[route("/")]
New {},
}
}
pub mod prelude {
pub use super::core::Route;
}