Merge pull request #99 from thecodingmachine/map_history

Adding support for history API
This commit is contained in:
David Négrier 2020-05-13 11:03:49 +02:00 committed by GitHub
commit 23a12ea652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 103 additions and 42 deletions

View file

@ -49,7 +49,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor1\/floor1.json"
"value":"..\/Floor1\/floor1.json"
}],
"type":"tilelayer",
"visible":true,
@ -67,7 +67,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Lyon\/lyon.json"
"value":"..\/Lyon\/lyon.json"
}],
"type":"tilelayer",
"visible":true,

View file

@ -43,7 +43,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor0\/floor0.json"
"value":"..\/Floor0\/floor0.json"
}],
"type":"tilelayer",
"visible":true,

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

View file

@ -37,7 +37,7 @@
{
"name":"exitSceneUrl",
"type":"string",
"value":"\/Floor0\/floor0.json"
"value":"..\/Floor0\/floor0.json"
}],
"type":"tilelayer",
"visible":true,

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

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
});
});
}