Add instance configuration UI and backend

This commit is contained in:
2026-04-30 17:45:05 +02:00
parent 1578c3a708
commit 4229444f96
17 changed files with 293 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ use maud::{DOCTYPE, Markup, html};
use crate::MnemoState;
pub mod conf;
pub mod dashboard;
pub mod index;
pub mod login;
@@ -22,9 +23,15 @@ pub fn pages() -> Router<MnemoState> {
.route("/", get(index::page))
.route("/login", get(login::page))
.route("/dashboard", get(dashboard::page))
//
.route("/instance-config", get(conf::page))
.route("/instance-config/name", post(conf::change_name))
.route("/instance-config/dsc-webhook", post(conf::change_webhook))
//
.route("/user-settings", get(usersettings::page))
.route("/user-settings/handle", post(usersettings::change_handle))
.route("/user-settings/passwd", post(usersettings::change_password))
//
.route("/users", get(users::page))
.route("/users/{id}", get(users::profile::page))
.route("/users/create", get(users::create::page))