added services and interfaces for expense types
This commit is contained in:
parent
bd18fecdff
commit
7bb21f8796
8 changed files with 142 additions and 5 deletions
19
src/app/services/categories.ts
Normal file
19
src/app/services/categories.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class Categories {
|
||||
public static readonly BASE_URL = 'http://localhost:3000/common-cents/categories';
|
||||
|
||||
public async getCategories(): Promise<Category[]> {
|
||||
console.log('getCategories called');
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue