forked from loafle/openapi-generator-original
Changed base path to use contextPath
This commit is contained in:
parent
4133cae2bc
commit
d3bc347e31
@ -12,7 +12,7 @@ module {{package}} {
|
|||||||
*/
|
*/
|
||||||
{{/description}}
|
{{/description}}
|
||||||
export class {{classname}} {
|
export class {{classname}} {
|
||||||
private basePath = '{{basePath}}';
|
private basePath = '{{contextPath}}';
|
||||||
|
|
||||||
static $inject: string[] = ['$http'];
|
static $inject: string[] = ['$http'];
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
{{/description}}
|
{{/description}}
|
||||||
export class {{classname}} {
|
export class {{classname}} {
|
||||||
private basePath = '{{basePath}}';
|
private basePath = '{{contextPath}}';
|
||||||
|
|
||||||
constructor(private url: string, private username: string, private password: string, basePath?: string) {
|
constructor(private url: string, private username: string, private password: string, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user