15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
import type { RequestHandler } from "express";
|
|
|
|
import { copyLotOccupancy } from "../../helpers/lotOccupancyDB/copyLotOccupancy.js";
|
|
|
|
export const handler: RequestHandler = async (request, response) => {
|
|
const lotOccupancyId = copyLotOccupancy(request.body.lotOccupancyId, request.session);
|
|
|
|
response.json({
|
|
success: true,
|
|
lotOccupancyId
|
|
});
|
|
};
|
|
|
|
export default handler;
|