updated absensi lunch_in in API history and admin
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user