Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent c564d6decf
commit a7e0fe1d97
1381 changed files with 22278 additions and 485 deletions

View File

@@ -0,0 +1,12 @@
import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import pushNotificationController from '../controllers/pushNotificationController.js';
const router = express.Router();
router.use(authenticate);
router.put('/devices', pushNotificationController.registerDevice);
router.delete('/devices/:token', pushNotificationController.disableDevice);
router.get('/settings', pushNotificationController.getSettings);
router.put('/settings', pushNotificationController.updateSettings);
export default router;