16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
import type { Request, Response } from 'express'
|
|
|
|
import getFuneralHomes from '../../database/getFuneralHomes.js'
|
|
|
|
export default async function handler(
|
|
_request: Request,
|
|
response: Response
|
|
): Promise<void> {
|
|
const funeralHomes = await getFuneralHomes()
|
|
|
|
response.render('funeralHome-search', {
|
|
headTitle: `Funeral Home Search`,
|
|
funeralHomes
|
|
})
|
|
}
|