UNPKG

coctohug-web

Version:

- Nice localization with support of dozens of languages: [English](https://github.com/raingggg/coctohug/blob/main/readme_en.md), [العربية](https://github.com/raingggg/coctohug/blob/main/readme_ar.md), [Bulgarian](https://github.com/raingggg/coctohug/blob/

20 lines (15 loc) 429 B
var i18n = require('i18n'); const express = require('express'); const router = express.Router(); const { DailyReport } = require('../models'); const { Op } = require("sequelize"); router.get('/', async (req, res, next) => { const data = await DailyReport.findAll({ order: [ ['updatedAt', 'DESC'], ], limit: 500, }); res.render('index', { data, pageName: 'dailyReport' }); }); module.exports = router;