Reputation: 8303
I understand we can create remote methods on models which will expose an endpoint. However, is there a way to expose an endpoint without a model?
For example, if I want to create an endpoint checks the version of a native app. I don't need a model to back this endpoint. The endpoint would simply check the passed in version and respond.
Does this construct exist within Loopback? Or does it need to be done within the context of Express?
Upvotes: 5
Views: 3178
Reputation: 1442
You can use express routes as shown in Loopback's Getting Started example.
Upvotes: 4