Skip to content

Commit b2570a9

Browse files
committed
Update style in InstallationsRouter.
1 parent 99ac6c1 commit b2570a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Routers/InstallationsRouter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ export class InstallationsRouter extends ClassesRouter {
5151
}
5252

5353
getExpressRouter() {
54-
var router = new PromiseRouter();
55-
router.route('GET','/installations', (req) => { return this.handleFind(req); });
56-
router.route('GET','/installations/:objectId', (req) => { return this.handleGet(req); });
57-
router.route('POST','/installations', (req) => { return this.handleCreate(req); });
58-
router.route('PUT','/installations/:objectId', (req) => { return this.handleUpdate(req); });
59-
router.route('DELETE','/installations/:objectId', (req) => { return this.handleDelete(req); });
54+
let router = new PromiseRouter();
55+
router.route('GET','/installations', req => { return this.handleFind(req); });
56+
router.route('GET','/installations/:objectId', req => { return this.handleGet(req); });
57+
router.route('POST','/installations', req => { return this.handleCreate(req); });
58+
router.route('PUT','/installations/:objectId', req => { return this.handleUpdate(req); });
59+
router.route('DELETE','/installations/:objectId', req => { return this.handleDelete(req); });
6060
return router;
6161
}
6262
}

0 commit comments

Comments
 (0)