19 lines
370 B
TypeScript
19 lines
370 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class Merchants {
|
|
public static readonly BASE_URL = 'http://localhost:3000/common-cents/merchants';
|
|
|
|
public async getMerchants(): Promise<Merchant[]> {
|
|
console.log('getMerchants called');
|
|
|
|
return [];
|
|
}
|
|
}
|
|
|
|
export interface Merchant {
|
|
id: string;
|
|
name: string;
|
|
}
|