Reputation: 31
I have created all of my REST model-endpoints using the REST CRUD model-endpoint generator. I would like add additional endpoints to the generated controller. Is this possible? I can't find any documentation that tells me how to do this. I suppose that I could manually add another controller, but I would prefer the ability to keep everything grouped in a single place.
Upvotes: 1
Views: 158
Reputation: 1147
Yes you can add controllers via 'lb4 controller' and selecting 'empty controller'. Or you can add additional methods to the existing controllers.
https://loopback.io/doc/en/lb4/Controllers.html#writing-controller-methods
Upvotes: 1