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