hooked up UI to API

This commit is contained in:
2025-11-19 13:58:37 -05:00
parent 403a8b394c
commit 7850767967
4 changed files with 47 additions and 30 deletions

View File

@@ -67,19 +67,5 @@ eventRouter.post('/', async (req: Request, res: Response) => {
}
})
// //insert a new latest rank for a user
// ur.post('/', async (req, res) => {
// try {
// const change = req.body?.change;
// await insertMemberRank(change.member_id, change.rank_id, change.date);
// res.sendStatus(201);
// } catch (err) {
// console.error('Insert failed:', err);
// res.status(500).json({ error: 'Failed to update ranks' });
// }
// });
module.exports.courseRouter = courseRouter;
module.exports.eventRouter = eventRouter;