Skip to content

Commit

Permalink
add get empty locker count route
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Aug 13, 2024
1 parent e997ca5 commit 2fa43c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion routes/admin/adminData.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import {
getLockersDB,
getUserEditData,
getUsersDB,
manualCreateUser, manualVerifyUser,
manualCreateUser,
manualVerifyUser,
queryAreaRestriction,
queryAvailableLockersCount,
queryGradeRestriction,
queryStats,
removeLockerFromUser,
Expand Down Expand Up @@ -91,6 +93,14 @@ adminRouter.get('/management/get-statistics', async (req, res) => {
}
});

adminRouter.get('/management/get-locker-statistics', async (req, res, next) => {
try {
let data = await queryAvailableLockersCount();
res.json(data)
} catch (error) {
next(error);
}
});

adminRouter.get('/data/user-data', async (req, res) => {
try {
Expand Down

0 comments on commit 2fa43c9

Please sign in to comment.