stjimmy
stjimmy

Reputation: 41

Loopback REST api path

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

Answers (1)

stjimmy
stjimmy

Reputation: 41

Found a solution. I had to add "restApiRoot": "/api1" to loopback-component-jsonapi in component-config.json.

Upvotes: 0

Related Questions