Changed base path to use contextPath

This commit is contained in:
Martin Hardorf 2015-07-09 10:34:39 +02:00
parent 4133cae2bc
commit d3bc347e31
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module {{package}} {
*/
{{/description}}
export class {{classname}} {
private basePath = '{{basePath}}';
private basePath = '{{contextPath}}';
static $inject: string[] = ['$http'];

View File

@ -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) {