feat(news): implement news section with loading state and error handling in NoLoginView
All checks were successful
Deploy to production / deploy (push) Successful in 3m8s
All checks were successful
Deploy to production / deploy (push) Successful in 3m8s
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
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));
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user