Add news widget functionality: Integrate newsRouter for fetching news data, update initializeWidgetTypes to include news endpoint, and enhance DashboardWidget component to display news articles with pagination support. Update LoggedInView to manage widget request counters for unique endpoint handling.

This commit is contained in:
Torsten Schulz (local)
2026-01-29 17:20:06 +01:00
parent ab5620dea8
commit 084bacc20d
7 changed files with 188 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
import { Router } from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import newsController from '../controllers/newsController.js';
const router = Router();
router.get('/', authenticate, newsController.getNews.bind(newsController));
export default router;