server initial commit

This commit is contained in:
Ari Yeger
2025-07-15 13:34:30 -04:00
parent cf3f4270f9
commit 5fc2a1eb24
11 changed files with 1694 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import db from "../models/db.js";
import users from "../models/users.js";
/** * Fetches all users from the database.
* @return {Promise<User[]>}
*/
const getAllUsers = async () => {
try {
return await users.getAllUsers();
} catch (error) {
console.error('Error fetching users:', error);
throw error;
}
}
export default { getAllUsers };