123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import { AuthServiceService } from './auth-service.service';
- import { HttpClient } from '@angular/common/http';
- import { Injectable } from '@angular/core';
- @Injectable({
- providedIn: 'root'
- })
- export class ExternalPageService {
- constructor(private http: HttpClient,
- private authSer: AuthServiceService) { }
- headerMenus = [];
-
- getHeader(){
- return this.http.get(this.authSer.pathApi + '/main_menu_list/1');
- }
-
- getContentData() {
- return this.http.get(this.authSer.pathApi + '/external_page/1');
- }
-
-
- getHospitalMangamentsData(typeRequest:string) {
- if(typeRequest == 'hospital') {
- return this.http.get(this.authSer.pathApi + '/hospitals_centers_list/1');
- } else if(typeRequest == 'managements') {
- return this.http.get(this.authSer.pathApi + '/managements_list/1');
- }
- }
-
- getContactUs() {
- return this.http.get(this.authSer.pathApi + '/get_contact_us/1');
- }
-
- }
|