global: move home page and add logic for every page

This commit is contained in:
Agahnim 2026-03-24 14:32:08 +01:00
parent bec16ce0e4
commit 9e47d0ce83
3 changed files with 14 additions and 3 deletions

View file

@ -14,7 +14,7 @@ async fn main() {
let state = Arc::new(AppState::try_new().await);
let app = Router::new()
.route("/", get(home))
.route("/home", get(home))
.route("/music", get(music))
.nest_service("/static", ServeDir::new("static"))
.fallback(notfound)