@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
15 lines (11 loc) • 497 B
text/typescript
/* eslint-disable no-param-reassign */
import { Router } from 'express'
import MissingReportFormController from './controller'
import { Services } from '../../../../types/Services'
export default function routes({ layoutPath, services }: { layoutPath: string; services: Services }) {
const router = Router({ mergeParams: true })
const controller = new MissingReportFormController(layoutPath, services)
router.get(`/`, controller.GET)
router.post('/', controller.POST)
return router
}