cityssm/parking-ticket-system

View on GitHub
handlers/plates-post/doCreateLookupBatch.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Request, Response } from 'express'

import createLookupBatch, {
  type CreateLookupBatchForm
} from '../../database/parkingDB/createLookupBatch.js'

export default function handler(request: Request, response: Response): void {
  const createBatchResponse = createLookupBatch(
    request.body as CreateLookupBatchForm,
    request.session.user as PTSUser
  )

  response.json(createBatchResponse)
}