@@ -24,25 +24,25 @@ export class InstallationsRouter extends ClassesRouter {
|
||||
req.info.clientSDK,
|
||||
req.info.context
|
||||
)
|
||||
.then((response) => {
|
||||
.then(response => {
|
||||
return { response: response };
|
||||
});
|
||||
}
|
||||
|
||||
mountRoutes() {
|
||||
this.route('GET', '/installations', (req) => {
|
||||
this.route('GET', '/installations', req => {
|
||||
return this.handleFind(req);
|
||||
});
|
||||
this.route('GET', '/installations/:objectId', (req) => {
|
||||
this.route('GET', '/installations/:objectId', req => {
|
||||
return this.handleGet(req);
|
||||
});
|
||||
this.route('POST', '/installations', (req) => {
|
||||
this.route('POST', '/installations', req => {
|
||||
return this.handleCreate(req);
|
||||
});
|
||||
this.route('PUT', '/installations/:objectId', (req) => {
|
||||
this.route('PUT', '/installations/:objectId', req => {
|
||||
return this.handleUpdate(req);
|
||||
});
|
||||
this.route('DELETE', '/installations/:objectId', (req) => {
|
||||
this.route('DELETE', '/installations/:objectId', req => {
|
||||
return this.handleDelete(req);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user