Start user routes file, add some domain logic like a repository interface.
This commit is contained in:
parent
cfe95bc464
commit
20c6682353
2
app/src/api/user-routes.ts
Normal file
2
app/src/api/user-routes.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
|
7
app/src/domain/repository.ts
Normal file
7
app/src/domain/repository.ts
Normal 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>;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user