This commit is contained in:
2025-09-09 00:10:53 +03:00
parent 38f2a05107
commit 204fc092d7
239 changed files with 22447 additions and 9536 deletions

18
api/routes/push.routes.js Normal file
View File

@@ -0,0 +1,18 @@
const express = require('express');
const router = express.Router();
const PushController = require('../controllers/push.controller');
const authenticate = require("../middleware/auth");
router
.route('/key')
.get(authenticate, PushController.getKey);
router
.route('/subscribe')
.post(authenticate, PushController.createSubscribe);
router
.route('/unsubscribe')
.delete(authenticate, PushController.deleteSubscribe);
module.exports = router;