import { HostConfig } from '../config/host.config'; import { Injectable } from '@angular/core'; import { HttpHandler } from './http-handler.service'; import { Page } from '../response/page.type'; @Injectable({ providedIn: 'root', }) export class DefaultService { static PATH = ''; constructor(private httpHandler: HttpHandler) {} hello(header?: any): Promise { return this.httpHandler.get(`${HostConfig.DEV_HOST}${DefaultService.PATH}/`, header); } }