diff options
Diffstat (limited to 'portal-FE-common/src/app/shared/services/get-access/get-access.service.ts')
-rw-r--r-- | portal-FE-common/src/app/shared/services/get-access/get-access.service.ts | 16 |
1 files changed, 16 insertions, 0 deletions
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); + } +} |