created API For Aplication Absensi

This commit is contained in:
2025-10-14 14:08:11 +07:00
commit 96d206d892
56 changed files with 6533 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
const express = require('express')
const router = express.Router()
const controller = require('../controllers/branch.controller')
const apiKey = require('../../../middlewares/apiKey')
const jwt = require('../../../middlewares/authentication')
router.get('/', apiKey, (req, res) => {
controller.getAll(req, res)
})
router.post('/', apiKey, jwt, (req, res) => {
controller.create(req, res)
} )
router.put('/:id', apiKey, jwt, (req, res) => {
controller.update(req, res)
})
router.put('/:id', apiKey, jwt, (req, res) => {
controller.destroy(req, res)
})
module.exports = router