mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
25 lines
482 B
Rust
25 lines
482 B
Rust
|
use yew_router::{
|
||
|
components::{RouterAnchor, RouterButton},
|
||
|
Switch,
|
||
|
};
|
||
|
|
||
|
#[derive(Switch, Debug, Clone)]
|
||
|
pub enum AppRoute {
|
||
|
#[to = "/login"]
|
||
|
Login,
|
||
|
#[to = "/users"]
|
||
|
ListUsers,
|
||
|
#[to = "/users/create"]
|
||
|
CreateUser,
|
||
|
#[to = "/user/{user_id}/password"]
|
||
|
ChangePassword(String),
|
||
|
#[to = "/user/{user_id}"]
|
||
|
UserDetails(String),
|
||
|
#[to = "/"]
|
||
|
Index,
|
||
|
}
|
||
|
|
||
|
pub type Link = RouterAnchor<AppRoute>;
|
||
|
|
||
|
pub type NavButton = RouterButton<AppRoute>;
|