18 lines
560 B
TypeScript
18 lines
560 B
TypeScript
import type { Request, Response } from 'express'
|
|
|
|
import { getConfigProperty } from '../../helpers/config.helpers.js'
|
|
import type { FuneralHome } from '../../types/recordTypes.js'
|
|
|
|
export default function handler(_request: Request, response: Response): void {
|
|
const funeralHome: FuneralHome = {
|
|
funeralHomeCity: getConfigProperty('settings.cityDefault'),
|
|
funeralHomeProvince: getConfigProperty('settings.provinceDefault')
|
|
}
|
|
|
|
response.render('funeralHome-edit', {
|
|
headTitle: `Create a Funeral Home`,
|
|
isCreate: true,
|
|
funeralHome
|
|
})
|
|
}
|