admin_to_react

This commit is contained in:
2026-08-09 14:13:06 +03:00
commit 5d2fc5773c
163 changed files with 140326 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const express = require('express');
const router = express.Router();
const modersController = require('../controllers/modersController');
const checkAuth = require('../middleware/checkAuth');
router.get('/', checkAuth, modersController.getModers);
router.post('/', checkAuth, modersController.addModer);
router.put('/:id', checkAuth, modersController.changePassword);
router.delete('/:id', checkAuth, modersController.deleteModer);
module.exports = router;