add v2 routes, controllers

This commit is contained in:
Alex Holliday committed 2025-09-24 15:55:09 -07:00
1 parent f4b76baaa2
commit 6d0c560948
38 files changed
+1532 -3

No files matched your search

@@ -1,10 +1,12 @@
import { IUser, User } from "../../../db/v2/models/index.js";
const SERVICE_NAME = "UserServiceV2";
export interface IUserService {
getAllUsers(): Promise<IUser[]>;
}
class UserService implements IUserService {
static SERVICE_NAME = SERVICE_NAME;
async getAllUsers(): Promise<IUser[]> {
return await User.find();
}