]> git.cworth.org Git - empires-server/commit
game: Add a new /player endpoint to allow a player to change their name
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 13:18:19 +0000 (06:18 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 14:28:57 +0000 (07:28 -0700)
commit5c589dc3c8016c2f43174b1cf6de3e934835a142
tree8a7ee0e15d30f2f2c0961ba4a9b4c157f5d58e6b
parentc5bdd36586eaa0235fb6822cb4ccb7620e1bb0aa
game: Add a new /player endpoint to allow a player to change their name

This sets the name both in the current game's player object as well as
in the session, (so it's there for subsequent games as well).

We have a simple test for this new endpoint as well.
game.js
lmno.js
test