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