Redirecting to the correct map after login screen based on URL provided

This commit is contained in:
David Négrier 2020-05-13 00:02:39 +02:00
parent daa559738b
commit faadacddb6
11 changed files with 49 additions and 43 deletions

View file

@ -20,7 +20,7 @@ export class MapController {
getMaps() {
this.App.get("/maps", (req: Request, res: Response) => {
return res.status(OK).send({
mapUrlStart: URL_ROOM_STARTED
mapUrlStart: req.headers.host + "/map/files" + URL_ROOM_STARTED
});
});
}