]> git.cworth.org Git - lmno-server/commitdiff
Eliminate code duplication for root path
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:10:46 +0000 (17:10 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 00:10:46 +0000 (17:10 -0700)
The desired behavior for both existing games is identical for the root
path: If there's no nickname set in the session, we want to query for
one, otherwise we server the game-specific template.

And in the last few commits, we actually made the implementation
identical for this function in both games.

So in this commit we replace the two copied functions with a single
function at the top-level. Hurrah for deletion of duplicated code!
This means less boilerplate is required for all future games.


No differences found