scaffold expense list

This commit is contained in:
Joe Arndt 2026-02-12 23:41:54 -06:00
parent 7bb21f8796
commit fded7f7c09
22 changed files with 253 additions and 133 deletions

View file

@ -0,0 +1,20 @@
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<Merchant[]> {
return this.http.get<Merchant[]>(MerchantService.MERCHANT_PATH);
}
}
export interface Merchant {
id: string;
name: string;
}