import { dateToString } from '@cityssm/utils-datetime' import type { Request, Response } from 'express' import getMaps from '../../database/getMaps.js' import { getLotStatuses, getLotTypes } from '../../helpers/functions.cache.js' export default async function handler( _request: Request, response: Response ): Promise { const rightNow = new Date() const maps = await getMaps() const lotTypes = await getLotTypes() const lotStatuses = await getLotStatuses() response.render('report-search', { headTitle: 'Reports', todayDateString: dateToString(rightNow), maps, lotTypes, lotStatuses }) }