user settings page & handle changing for self

This commit is contained in:
2026-03-18 22:01:33 +01:00
parent cbf344dc25
commit 73a6e7d8e6
3 changed files with 78 additions and 2 deletions

View File

@@ -1,10 +1,14 @@
use axum::{Router, routing::get};
use axum::{
Router,
routing::{get, post},
};
use maud::{DOCTYPE, Markup, html};
pub mod dashboard;
pub mod index;
pub mod login;
pub mod persons;
pub mod settings;
pub mod tags;
pub mod users;
@@ -13,6 +17,8 @@ pub fn pages() -> Router {
.route("/", get(index::page))
.route("/login", get(login::page))
.route("/dashboard", get(dashboard::page))
.route("/user-settings", get(settings::page))
.route("/user-settings/handle", post(settings::change_handle))
.route("/users", get(users::page))
.route("/users/{id}", get(users::profile::page))
.route("/tags", get(tags::page))