Browse Source
Merge pull request #6280 from abpframework/fix/6250
Fixed the module template angular authentication problem
pull/6292/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
8 deletions
-
npm/ng-packs/packages/core/src/lib/services/application-configuration.service.ts
|
|
@ -9,11 +9,7 @@ import { RestService } from './rest.service'; |
|
|
providedIn: 'root', |
|
|
providedIn: 'root', |
|
|
}) |
|
|
}) |
|
|
export class ApplicationConfigurationService { |
|
|
export class ApplicationConfigurationService { |
|
|
get apiName(): string { |
|
|
constructor(private rest: RestService) {} |
|
|
return this.environment.getEnvironment().application?.name; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
constructor(private rest: RestService, private environment: EnvironmentService) {} |
|
|
|
|
|
|
|
|
|
|
|
getConfiguration(): Observable<ApplicationConfiguration.Response> { |
|
|
getConfiguration(): Observable<ApplicationConfiguration.Response> { |
|
|
const request: Rest.Request<null> = { |
|
|
const request: Rest.Request<null> = { |
|
|
@ -21,8 +17,6 @@ export class ApplicationConfigurationService { |
|
|
url: '/api/abp/application-configuration', |
|
|
url: '/api/abp/application-configuration', |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
return this.rest.request<null, ApplicationConfiguration.Response>(request, { |
|
|
return this.rest.request<null, ApplicationConfiguration.Response>(request, {}); |
|
|
apiName: this.apiName, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|