@@ -1,4 +1,3 @@
|
||||
|
||||
import ClassesRouter from './ClassesRouter';
|
||||
|
||||
export class RolesRouter extends ClassesRouter {
|
||||
@@ -7,11 +6,21 @@ export class RolesRouter extends ClassesRouter {
|
||||
}
|
||||
|
||||
mountRoutes() {
|
||||
this.route('GET','/roles', req => { return this.handleFind(req); });
|
||||
this.route('GET','/roles/:objectId', req => { return this.handleGet(req); });
|
||||
this.route('POST','/roles', req => { return this.handleCreate(req); });
|
||||
this.route('PUT','/roles/:objectId', req => { return this.handleUpdate(req); });
|
||||
this.route('DELETE','/roles/:objectId', req => { return this.handleDelete(req); });
|
||||
this.route('GET', '/roles', req => {
|
||||
return this.handleFind(req);
|
||||
});
|
||||
this.route('GET', '/roles/:objectId', req => {
|
||||
return this.handleGet(req);
|
||||
});
|
||||
this.route('POST', '/roles', req => {
|
||||
return this.handleCreate(req);
|
||||
});
|
||||
this.route('PUT', '/roles/:objectId', req => {
|
||||
return this.handleUpdate(req);
|
||||
});
|
||||
this.route('DELETE', '/roles/:objectId', req => {
|
||||
return this.handleDelete(req);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user