import type { Request, Response } from 'express' import { addFee } from '../../helpers/lotOccupancyDB/addFee.js' import { getFeeCategories } from '../../helpers/lotOccupancyDB/getFeeCategories.js' export async function handler( request: Request, response: Response ): Promise { const feeId = await addFee(request.body, request.session) const feeCategories = await getFeeCategories( {}, { includeFees: true } ) response.json({ success: true, feeId, feeCategories }) } export default handler