diff --git a/src/controllers/OrganisationsController.js b/src/controllers/OrganisationsController.js index 30d28966..f7c027ae 100644 --- a/src/controllers/OrganisationsController.js +++ b/src/controllers/OrganisationsController.js @@ -153,6 +153,11 @@ const organisationsController = { logger.warn(`getDAtasetTaskList() failed for lpa='${lpa}', datasetId='${datasetId}'`, { type: types.App }) next(e) } + }, + + async getIssueDetails (req, res, next) { + const params = {} + res.render('organisations/issueDetails.html', params) } } diff --git a/src/routes/organisations.js b/src/routes/organisations.js index 5ee4fdde..878b9b36 100644 --- a/src/routes/organisations.js +++ b/src/routes/organisations.js @@ -3,6 +3,8 @@ import OrganisationsController from '../controllers/OrganisationsController.js' const router = express.Router() +router.get('/:lpa/:dataset/get-started', OrganisationsController.getGetStarted) +router.get('/:lpa/:dataset/:issueType', OrganisationsController.getIssueDetails) router.get('/:lpa/:dataset/get-started', OrganisationsController.getGetStarted) router.get('/:lpa/:dataset', OrganisationsController.getDatasetTaskList) router.get('/:lpa', OrganisationsController.getOverview) diff --git a/src/views/organisations/issueDetails.html b/src/views/organisations/issueDetails.html new file mode 100644 index 00000000..01e6bda2 --- /dev/null +++ b/src/views/organisations/issueDetails.html @@ -0,0 +1 @@ +

under construction

\ No newline at end of file diff --git a/test/unit/organisationsController.test.js b/test/unit/organisationsController.test.js index e9aef8fc..d3994870 100644 --- a/test/unit/organisationsController.test.js +++ b/test/unit/organisationsController.test.js @@ -271,4 +271,12 @@ describe('OrganisationsController.js', () => { expect(next).toHaveBeenCalledWith(expect.any(Error)) }) }) + + describe('issue details', () => { + it.todo('should call render with the issue details page') + + it.todo('should fetch the issue details and pass the on to the template') + + it.todo('should catch errors and pass them onto the next function ') + }) })