cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

rootUrl '/' generates incorrect request urls #45

Closed Azuka closed 5 years ago

Azuka commented 5 years ago

I noticed setting rootUrl: '/' generates incorrect urls, e.g. an endpoint with /api/posts gets an xhr request of https://posts.

This is for a multi-tenant site where the base url can't be injected into the build easily.

Azuka commented 5 years ago

Closing. rootUrl: '' works just fine. Sorry about that.