19 lines
717 B
JavaScript
19 lines
717 B
JavaScript
import * as configFunctions from '../../helpers/functions.config.js';
|
|
import { getMaps } from '../../helpers/lotOccupancyDB/getMaps.js';
|
|
import { getLotTypes, getLotStatuses } from '../../helpers/functions.cache.js';
|
|
export async function handler(request, response) {
|
|
const maps = await getMaps();
|
|
const lotTypes = await getLotTypes();
|
|
const lotStatuses = await getLotStatuses();
|
|
response.render('lot-search', {
|
|
headTitle: configFunctions.getProperty('aliases.lot') + ' Search',
|
|
maps,
|
|
lotTypes,
|
|
lotStatuses,
|
|
mapId: request.query.mapId,
|
|
lotTypeId: request.query.lotTypeId,
|
|
lotStatusId: request.query.lotStatusId
|
|
});
|
|
}
|
|
export default handler;
|