Skip to main content

fedimint_server_ui/
lib.rs

1pub mod dashboard;
2pub mod setup;
3
4use serde::Deserialize;
5
6pub(crate) const LOG_UI: &str = "fm::ui";
7
8// Common route constants
9pub const EXPLORER_IDX_ROUTE: &str = "/explorer";
10pub const EXPLORER_ROUTE: &str = "/explorer/{session_idx}";
11pub const DOWNLOAD_BACKUP_ROUTE: &str = "/download-backup";
12pub const CHANGE_PASSWORD_ROUTE: &str = "/change-password";
13pub const METRICS_ROUTE: &str = "/metrics";
14
15#[derive(Debug, Deserialize)]
16pub struct PasswordChangeInput {
17    pub current_password: String,
18    pub new_password: String,
19    pub confirm_password: String,
20}