Start user routes file, add some domain logic like a repository interface.

This commit is contained in:
Dave Smith-Hayes 2024-04-01 21:54:31 -04:00
parent cfe95bc464
commit 20c6682353
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@

View File

@ -0,0 +1,7 @@
export interface Repository<T> {
get(id: any): Promise<T>;
save(model: T): Promise<void>;
update(model: T): Promise<void>;
delete(model: T): Promise<void>;
}