Moving maps to their own container

This commit is contained in:
David Négrier 2020-07-23 18:43:51 +02:00
parent ed146226cf
commit 2484e4f1df
25 changed files with 140 additions and 4 deletions

View file

@ -19,8 +19,9 @@ export class MapController {
// Returns a map mapping map name to file name of the map
getStartMap() {
this.App.get("/start-map", (req: Request, res: Response) => {
let url = req.headers.host?.replace('api.', 'maps.') + URL_ROOM_STARTED;
res.status(OK).send({
mapUrlStart: req.headers.host + "/map/files" + URL_ROOM_STARTED,
mapUrlStart: url,
startInstance: "global"
});
});