cityssm/parking-ticket-system

View on GitHub
routes/reports.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { dateToString } from '@cityssm/utils-datetime';
import { Router } from 'express';
import handler_reportName from '../handlers/reports-all/reportName.js';
export default Router()
    .get('/', (_request, response) => {
    const rightNow = new Date();
    response.render('report-search', {
        headTitle: 'Reports',
        todayDateString: dateToString(rightNow)
    });
})
    .all('/:reportName', handler_reportName);