sunrise-cms/handlers/admin-get/lotTypes.ts

19 lines
483 B
TypeScript

import type { Request, Response } from 'express'
import { getLotTypes } from '../../helpers/functions.cache.js'
import * as configFunctions from '../../helpers/functions.config.js'
export async function handler(
_request: Request,
response: Response
): Promise<void> {
const lotTypes = await getLotTypes()
response.render('admin-lotTypes', {
headTitle: `${configFunctions.getConfigProperty('aliases.lot')} Type Management`,
lotTypes
})
}
export default handler