global: move home page and add logic for every page
This commit is contained in:
parent
d9a5e97259
commit
8c2363d330
3 changed files with 14 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue