import { addLotTypeField } from '../../helpers/lotOccupancyDB/addLotTypeField.js'; import { getLotTypes } from '../../helpers/functions.cache.js'; export async function handler(request, response) { const lotTypeFieldId = await addLotTypeField(request.body, request.session); const lotTypes = await getLotTypes(); response.json({ success: true, lotTypeFieldId, lotTypes }); } export default handler;