Initial commit: teaching institution management API.

Express/MongoDB backend with JWT auth, RBAC, S3 uploads, notifications, and scheduled jobs.
This commit is contained in:
2026-08-09 04:18:08 +02:00
commit f04c797be6
107 changed files with 9190 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// /components/auth/authRoutes.js
const express = require('express');
const authController = require('./authController');
const { validateLogin, validateRefresh } = require('./authValidator');
const authMiddleware = require('../../middlewares/authMiddleware');
const router = express.Router();
router.post('/login', validateLogin, authController.login);
router.post('/refresh', validateRefresh, authController.refresh);
router.post('/logout', authMiddleware, authController.logout);
module.exports = router;