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

17 lines
442 B
TypeScript

import type { RequestHandler } from 'express'
import { getLotTypes } from '../../helpers/functions.cache.js'
import * as configFunctions from '../../helpers/functions.config.js'
export const handler: RequestHandler = (_request, response) => {
const lotTypes = getLotTypes()
response.render('admin-lotTypes', {
headTitle: configFunctions.getProperty('aliases.lot') + ' Type Management',
lotTypes
})
}
export default handler