@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 (10 loc) • 407 B
text/typescript
/* eslint-disable no-param-reassign */
import { Router } from 'express'
// Routes
import formRoutes from './form/routes'
import { Services } from '../../../../types/Services'
export default function routes({ layoutPath, services }: { layoutPath: string; services: Services }) {
const router = Router({ mergeParams: true })
router.use(`/form`, formRoutes({ layoutPath, services }))
return router
}