12 lines
388 B
JavaScript
12 lines
388 B
JavaScript
import { updateLotType } from "../../helpers/lotOccupancyDB/updateLotType.js";
|
|
import { getLotTypes } from "../../helpers/functions.cache.js";
|
|
export const handler = async (request, response) => {
|
|
const success = updateLotType(request.body, request.session);
|
|
const lotTypes = getLotTypes();
|
|
response.json({
|
|
success,
|
|
lotTypes
|
|
});
|
|
};
|
|
export default handler;
|