13 lines
425 B
JavaScript
13 lines
425 B
JavaScript
import { addLotTypeField } from '../../helpers/lotOccupancyDB/addLotTypeField.js';
|
|
import { getLotTypes } from '../../helpers/functions.cache.js';
|
|
export const handler = (request, response) => {
|
|
const lotTypeFieldId = addLotTypeField(request.body, request.session);
|
|
const lotTypes = getLotTypes();
|
|
response.json({
|
|
success: true,
|
|
lotTypeFieldId,
|
|
lotTypes
|
|
});
|
|
};
|
|
export default handler;
|