hooked up UI to API
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user