Reputation: 41
I have moved my /api path to /api1. It's working fine, but the data for relationships etc. is still /api.
Example: /api1/something -> I got the data, but in the relationship, every related model has a route with /api only. Where can I change this?
Thank you.
Upvotes: 0
Views: 130
Reputation: 41
Found a solution. I had to add "restApiRoot": "/api1" to loopback-component-jsonapi in component-config.json.
Upvotes: 0