]> git.cworth.org Git - lmno.games/commitdiff
empires: Construct reliable paths for all game API endpoints
authorCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 15:06:11 +0000 (08:06 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 24 May 2020 15:20:47 +0000 (08:20 -0700)
By appending to window.location we can ensure that we're always
hitting an endpoint one level below the game ID, (and not replacing
the game ID), regardless of whether the current path ends in a
trailing slash or not.


No differences found