updated absensi

This commit is contained in:
2025-10-15 15:25:11 +07:00
parent 96d206d892
commit 9389edf24d
5 changed files with 108 additions and 15 deletions

View File

@@ -9,10 +9,18 @@ router.get('/history', apiKey, jwt, (req, res) => {
controller.history(req, res);
})
router.get('/', apiKey, (req, res) => {
controller.getAll(req, res)
})
router.post('/', jwt, apiKey, upload.single('attendances'), (req, res) => {
controller.create(req, res)
})
router.get('/check-location', apiKey, jwt, (req, res) => {
controller.checkLocation(req, res)
})
router.post('/clock-out', jwt, apiKey, (req, res) => {
controller.clockOut(req, res)
})