32 lines
637 B
TypeScript
32 lines
637 B
TypeScript
import type { Request, Response } from 'express'
|
|
|
|
import { getFeeCategories } from '../../database/getFeeCategories.js'
|
|
import {
|
|
getLotTypes,
|
|
getOccupancyTypes
|
|
} from '../../helpers/functions.cache.js'
|
|
|
|
export async function handler(
|
|
_request: Request,
|
|
response: Response
|
|
): Promise<void> {
|
|
const feeCategories = await getFeeCategories(
|
|
{},
|
|
{
|
|
includeFees: true
|
|
}
|
|
)
|
|
|
|
const occupancyTypes = await getOccupancyTypes()
|
|
const lotTypes = await getLotTypes()
|
|
|
|
response.render('admin-fees', {
|
|
headTitle: 'Fee Management',
|
|
feeCategories,
|
|
occupancyTypes,
|
|
lotTypes
|
|
})
|
|
}
|
|
|
|
export default handler
|