mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
app: reorganize and add a page to change the password
This commit is contained in:
committed by
nitnelave
parent
a184cce38f
commit
005e18472e
@@ -0,0 +1,24 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user