updated absensi lunch_in in API history and admin

This commit is contained in:
2025-10-21 14:18:06 +07:00
parent 9d4a310738
commit 328b3653fe
2 changed files with 8 additions and 4 deletions

View File

@@ -3,13 +3,14 @@ const router = express.Router()
const controller = require('../controllers/absensi.controller')
const apiKey = require('../../../middlewares/apiKey')
const jwt = require('../../../middlewares/authentication')
const checkRole = require('../../../middlewares/checkRole')
const upload = require('../../../middlewares/upload')
router.get('/history', apiKey, jwt, (req, res) => {
controller.history(req, res);
})
router.get('/', apiKey, (req, res) => {
router.get('/', apiKey, jwt, checkRole('admin'), (req, res) => {
controller.getAll(req, res)
})