From 20c6682353d3c692df8261af289eebb7d0a9481f Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 1 Apr 2024 21:54:31 -0400 Subject: [PATCH] Start user routes file, add some domain logic like a repository interface. --- app/src/api/user-routes.ts | 2 ++ app/src/domain/repository.ts | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 app/src/api/user-routes.ts create mode 100644 app/src/domain/repository.ts diff --git a/app/src/api/user-routes.ts b/app/src/api/user-routes.ts new file mode 100644 index 0000000..139597f --- /dev/null +++ b/app/src/api/user-routes.ts @@ -0,0 +1,2 @@ + + diff --git a/app/src/domain/repository.ts b/app/src/domain/repository.ts new file mode 100644 index 0000000..61fdf82 --- /dev/null +++ b/app/src/domain/repository.ts @@ -0,0 +1,7 @@ +export interface Repository { + get(id: any): Promise; + save(model: T): Promise; + update(model: T): Promise; + delete(model: T): Promise; +} +