]> git.cworth.org Git - empires-server/commit
lmno: Generalize middleware to not be specific to empires
authorCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 20:39:01 +0000 (13:39 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 20:48:51 +0000 (13:48 -0700)
commit96694cc3d2adad5d23dccdc287f10b62a8d9a722
tree21e12a92cc54feb8637a1e78bdf2484d3364c5cc
parentd5b111168961ef1a05f62df26e00ec86bfd3a1c0
lmno: Generalize middleware to not be specific to empires

We're planning to extend LMNO past the original single game of Empires
soon. So, we adjust this middleware here to work for any game engine
prior to the game ID in the path, (and simply preserve that engine
string in the result of the redirect).
lmno.js