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