created user management

This commit is contained in:
2025-10-16 10:55:59 +07:00
parent 517a7a4b64
commit 8bf4f20d85
6 changed files with 254 additions and 0 deletions

View File

@@ -3,6 +3,9 @@ const router = express.Router()
const controller = require('../controllers/branch.controller')
const apiKey = require('../../../middlewares/apiKey')
const jwt = require('../../../middlewares/authentication')
const checkRole = require('../../../middlewares/checkRole')
router.use(jwt, checkRole('admin'))
router.get('/', apiKey, (req, res) => {
controller.getAll(req, res)