Renaming /maps to /start-map

Closes #90
This commit is contained in:
David Négrier 2020-05-24 22:53:10 +02:00
parent cd7763770e
commit cd586a9e0c
4 changed files with 9 additions and 9 deletions

View file

@ -8,7 +8,7 @@ export class MapController {
constructor(App: Application) {
this.App = App;
this.getMaps();
this.getStartMap();
this.assetMaps();
}
@ -17,8 +17,8 @@ export class MapController {
}
// Returns a map mapping map name to file name of the map
getMaps() {
this.App.get("/maps", (req: Request, res: Response) => {
getStartMap() {
this.App.get("/start-map", (req: Request, res: Response) => {
return res.status(OK).send({
mapUrlStart: req.headers.host + "/map/files" + URL_ROOM_STARTED,
startInstance: "global"