feat: add class discounts, frontend visibility, and public listing

Add hasDiscount, freeSpots, and showOnFrontend on classes with a public get-all endpoint and richer notification user populate.
This commit is contained in:
2026-08-16 08:11:42 +03:30
parent 21bff0c4ba
commit f57d8bbdfa
5 changed files with 100 additions and 10 deletions
+3
View File
@@ -9,6 +9,9 @@ const { PERMISSIONS } = require('../../constants/permissions');
const router = express.Router();
// Public Scope
router.get('/user/get-all', classController.getPublicClasses);
router.use(authMiddleware);
// User Scope