import { Injectable } from '@angular/core'; import { HttpService } from './http.service'; @Injectable({ providedIn: 'root', }) export class MerchantService { public static readonly MERCHANT_PATH = 'http://localhost:3000/common-cents/merchants'; public constructor(private readonly http: HttpService) { } public async getMerchants(): Promise { return this.http.get(MerchantService.MERCHANT_PATH); } } export interface Merchant { id: string; name: string; }