Michael Covert
Michael Covert

Reputation: 31

Loopback 4 extending REST model-endpoints

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

Answers (1)

Salitha
Salitha

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

Related Questions