summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/shared/services/get-access
diff options
context:
space:
mode:
authorSudarshan Kumar <sudarshan.kumar@att.com>2020-01-29 15:37:27 +0530
committerSudarshan Kumar <sudarshan.kumar@att.com>2020-01-29 15:40:55 +0530
commite08934d7ee33d6a22ce746e6e9a2270d87115345 (patch)
tree462d19a732f4090f2b004689180b449a78d85664 /portal-FE-common/src/app/shared/services/get-access
parent602630618626d0ca1fd5fe6ac4f3347029bfd4c7 (diff)
Added service components
Added service components and removed all att or ecomp references Issue-ID: PORTAL-795 Change-Id: I71d47098d514cd70dad2d765799b38a54c091b9d Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'portal-FE-common/src/app/shared/services/get-access')
-rw-r--r--portal-FE-common/src/app/shared/services/get-access/get-access.service.spec.ts12
-rw-r--r--portal-FE-common/src/app/shared/services/get-access/get-access.service.ts16
2 files changed, 28 insertions, 0 deletions
diff --git a/portal-FE-common/src/app/shared/services/get-access/get-access.service.spec.ts b/portal-FE-common/src/app/shared/services/get-access/get-access.service.spec.ts
new file mode 100644
index 00000000..2f0c96a8
--- /dev/null
+++ b/portal-FE-common/src/app/shared/services/get-access/get-access.service.spec.ts
@@ -0,0 +1,12 @@
+import { TestBed } from '@angular/core/testing';
+
+import { GetAccessService } from './get-access.service';
+
+describe('GetAccessService', () => {
+ beforeEach(() => TestBed.configureTestingModule({}));
+
+ it('should be created', () => {
+ const service: GetAccessService = TestBed.get(GetAccessService);
+ expect(service).toBeTruthy();
+ });
+});
diff --git a/portal-FE-common/src/app/shared/services/get-access/get-access.service.ts b/portal-FE-common/src/app/shared/services/get-access/get-access.service.ts
new file mode 100644
index 00000000..5de2412b
--- /dev/null
+++ b/portal-FE-common/src/app/shared/services/get-access/get-access.service.ts
@@ -0,0 +1,16 @@
+import { Injectable } from '@angular/core';
+import { environment } from 'src/environments/environment';
+import { HttpClient } from '@angular/common/http';
+
+@Injectable({
+ providedIn: 'root'
+})
+export class GetAccessService {
+
+ constructor(private http: HttpClient) { }
+ apiUrl = environment.api;
+
+ getListOfApp() {
+ return this.http.get(this.apiUrl.listOfApp);
+ }
+}