Files
yourpart3/backend/routers/newsRouter.js
Torsten Schulz (local) d9a46dcb34
All checks were successful
Deploy to production / deploy (push) Successful in 3m8s
feat(news): implement news section with loading state and error handling in NoLoginView
2026-09-03 14:18:14 +02:00

11 lines
357 B
JavaScript
Executable File

import { Router } from 'express';
import newsController from '../controllers/newsController.js';
const router = Router();
// News are shown on the public landing page as well as in the dashboard.
// The endpoint only exposes cached third-party headlines, no user data.
router.get('/', newsController.getNews.bind(newsController));
export default router;