nicer redirect after changing language; rename route

This commit is contained in:
2025-08-13 11:32:24 +02:00
parent 652ea26b32
commit 5755109dc8
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ async fn retu(
div.mb-sm { (t!("ask_to_change_name", name = client.get_display_name())) }
form action="/name" method="post" {
form action="/game" method="post" {
fieldset role="group" {
input
name="name"
@@ -182,6 +182,6 @@ async fn set_name(
pub(super) fn routes() -> Router<Arc<Backend>> {
Router::new()
.route("/game", get(index))
.route("/name", post(set_name))
.route("/game", post(set_name))
.route("/{*uuid}", get(game))
}