]> git.cworth.org Git - empires-server/commit
Use an express Router for each of the game-engine-specific sub-apps
authorCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 17:06:23 +0000 (10:06 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 17:06:23 +0000 (10:06 -0700)
commit20ab7f84abd07b744d0c73f0dd54879ff884e534
tree8f9f4b4fc14c1b95eabefcfbd00b19436007d1b4
parent0f640b6dfea5ebea0d96e811191f931b49cea791
Use an express Router for each of the game-engine-specific sub-apps

This eliminates the redundant code that was otherwise required by
using an entire app at the level of each game engine, (setting up
cors, body-parser, nunjucks configuration, etc.).

So this is much more pleasant, with less boilerplate and less code
duplication.
empires.js
tictactoe.js