mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 00:21:19 +00:00
Merge pull request #1196 from wing328/typescript_basepath
[TypeScript] Fix base path
This commit is contained in:
@@ -12,7 +12,7 @@ module {{package}} {
|
||||
*/
|
||||
{{/description}}
|
||||
export class {{classname}} {
|
||||
private basePath = '{{contextPath}}';
|
||||
private basePath = '{{basePath}}';
|
||||
|
||||
static $inject: string[] = ['$http'];
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ class VoidAuth implements Authentication {
|
||||
*/
|
||||
{{/description}}
|
||||
export class {{classname}} {
|
||||
private basePath = '{{contextPath}}';
|
||||
private basePath = '{{basePath}}';
|
||||
public authentications = {
|
||||
'default': <Authentication>new VoidAuth(),
|
||||
{{#authMethods}}
|
||||
|
||||
Reference in New Issue
Block a user