Files
freeCodeCamp/server/boot/news.js
2018-08-03 19:27:42 +05:30

10 lines
207 B
JavaScript

export default function newsBoot(app) {
const router = app.loopback.Router();
router.get('/', (req, res) => {
res.render('layout-news', {title: 'Hello News?'});
});
app.use('/news', router);
}