1#[derive(Clone, Debug)]
5pub struct FortifyPaths {
6 pub login: String,
7 pub register: String,
8 pub logout: String,
9 pub me: String,
10 pub profile: String,
11 pub password: String,
12 pub forgot_password: String,
13 pub reset_password: String,
14 pub verify_email: String,
15 pub resend_verification: String,
16 pub confirm_password: String,
17 pub confirmed_password_status: String,
18 pub two_factor: String,
19 pub two_factor_confirm: String,
20 pub two_factor_disable: String,
21 pub two_factor_qr: String,
22 pub two_factor_secret: String,
23 pub two_factor_recovery: String,
24 pub two_factor_challenge: String,
25 pub roles: String,
26 pub permissions: String,
27 pub users: String,
28}
29
30impl Default for FortifyPaths {
31 fn default() -> Self {
32 Self {
33 login: "/login".into(),
34 register: "/register".into(),
35 logout: "/logout".into(),
36 me: "/me".into(),
37 profile: "/profile".into(),
38 password: "/password".into(),
39 forgot_password: "/forgot-password".into(),
40 reset_password: "/reset-password".into(),
41 verify_email: "/email/verify".into(),
42 resend_verification: "/email/verification-notification".into(),
43 confirm_password: "/confirm-password".into(),
44 confirmed_password_status: "/confirmed-password-status".into(),
45 two_factor: "/two-factor".into(),
46 two_factor_confirm: "/two-factor/confirm".into(),
47 two_factor_disable: "/two-factor/disable".into(),
48 two_factor_qr: "/two-factor/qr-code".into(),
49 two_factor_secret: "/two-factor/secret-key".into(),
50 two_factor_recovery: "/two-factor/recovery-codes".into(),
51 two_factor_challenge: "/two-factor/challenge".into(),
52 roles: "/roles".into(),
53 permissions: "/permissions".into(),
54 users: "/users".into(),
55 }
56 }
57}
58
59impl FortifyPaths {
60 pub fn new() -> Self {
61 Self::default()
62 }
63}