Fixing linting
This commit is contained in:
@@ -47,7 +47,7 @@ export class MapController extends BaseController {
|
||||
if (!match) {
|
||||
res.writeStatus("404 Not Found");
|
||||
this.addCorsHeaders(res);
|
||||
res.writeHeader('Content-Type', 'application/json');
|
||||
res.writeHeader("Content-Type", "application/json");
|
||||
res.end(JSON.stringify({}));
|
||||
return;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ export class MapController extends BaseController {
|
||||
|
||||
res.writeStatus("200 OK");
|
||||
this.addCorsHeaders(res);
|
||||
res.writeHeader('Content-Type', 'application/json');
|
||||
res.writeHeader("Content-Type", "application/json");
|
||||
res.end(
|
||||
JSON.stringify({
|
||||
mapUrl,
|
||||
@@ -108,7 +108,7 @@ export class MapController extends BaseController {
|
||||
|
||||
res.writeStatus("200 OK");
|
||||
this.addCorsHeaders(res);
|
||||
res.writeHeader('Content-Type', 'application/json');
|
||||
res.writeHeader("Content-Type", "application/json");
|
||||
res.end(JSON.stringify(mapDetails));
|
||||
} catch (e) {
|
||||
this.errorToResponse(e, res);
|
||||
|
||||
Reference in New Issue
Block a user