From d3bc347e317aaf7cfccfe6b574a2f7b4edf8c478 Mon Sep 17 00:00:00 2001 From: Martin Hardorf Date: Thu, 9 Jul 2015 10:34:39 +0200 Subject: [PATCH] Changed base path to use contextPath --- .../src/main/resources/TypeScript-Angular/api.mustache | 2 +- .../src/main/resources/TypeScript-node/api.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-Angular/api.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-Angular/api.mustache index eb9e27fc06a..83fee2ce4e3 100644 --- a/modules/swagger-codegen/src/main/resources/TypeScript-Angular/api.mustache +++ b/modules/swagger-codegen/src/main/resources/TypeScript-Angular/api.mustache @@ -12,7 +12,7 @@ module {{package}} { */ {{/description}} export class {{classname}} { - private basePath = '{{basePath}}'; + private basePath = '{{contextPath}}'; static $inject: string[] = ['$http']; diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache index 22775f70340..debeed69515 100644 --- a/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache +++ b/modules/swagger-codegen/src/main/resources/TypeScript-node/api.mustache @@ -7,7 +7,7 @@ */ {{/description}} export class {{classname}} { - private basePath = '{{basePath}}'; + private basePath = '{{contextPath}}'; constructor(private url: string, private username: string, private password: string, basePath?: string) { if (basePath) {