implemented pagination, header polish, and new display fixes

This commit is contained in:
2025-12-15 20:28:14 -05:00
parent fd94a5f261
commit 1eef9145a4
16 changed files with 370 additions and 18 deletions

View File

@@ -66,9 +66,11 @@ router.get("/history", async (req: Request, res: Response) => {
}
})
router.get('/all', [requireRole("17th Administrator")], async (req, res) => {
router.get('/all', [requireRole("17th Administrator")], async (req: Request, res: Response) => {
try {
const result = await getAllLOA();
const page = Number(req.query.page) || undefined;
const pageSize = Number(req.query.pageSize) || undefined;
const result = await getAllLOA(page, pageSize);
res.status(200).json(result)
} catch (error) {
console.error(error);