@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
14 lines (10 loc) • 484 B
text/typescript
/* eslint-disable no-param-reassign */
import { Router } from 'express'
import ViewAsyncReportController 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 ViewAsyncReportController(layoutPath, services)
router.get([`/`, `/download-disabled`], controller.GET)
return router
}