Skip to content

Commit

Permalink
clean up old code for adding evidence documents for investment projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Pentecost authored and Richard Pentecost committed Feb 27, 2024
1 parent 164822c commit 334e3ec
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 198 deletions.
37 changes: 0 additions & 37 deletions src/apps/investments/apps/evidence/controllers/create.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/apps/investments/apps/evidence/controllers/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/apps/investments/apps/evidence/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/apps/investments/apps/evidence/labels.js

This file was deleted.

25 changes: 0 additions & 25 deletions src/apps/investments/apps/evidence/macros/evidence-form.js

This file was deleted.

34 changes: 0 additions & 34 deletions src/apps/investments/apps/evidence/macros/fields.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/apps/investments/apps/evidence/macros/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/apps/investments/apps/evidence/router.js

This file was deleted.

25 changes: 0 additions & 25 deletions src/apps/investments/apps/evidence/transformers.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/apps/investments/apps/evidence/views/create.njk

This file was deleted.

27 changes: 0 additions & 27 deletions src/apps/investments/middleware/evidence.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/apps/investments/router-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@ const { shared } = require('./middleware')

const { create, editHistory } = require('./controllers')

const { renderAddEvidence } = require('./apps/evidence/controllers/create')
const { postUpload } = require('../documents/middleware/upload')

const { setCompanyDetails } = require('./middleware/interactions')
const { setPropositionsReturnUrl } = require('./middleware/propositions')
const {
setEvidenceReturnUrl,
setEvidenceDocumentsOptions,
} = require('./middleware/evidence')

const interactionsRouter = require('../interactions/router.sub-app')
const propositionsRouter = require('../propositions/router.sub-app')
Expand All @@ -46,11 +39,6 @@ router.get('/create/:companyId?', create.start.renderCreatePage)
// Add investment from Investments
router.get('/create', create.start.renderCreatePage)

router
.route('/:investmentId/evidence/add-new')
.get(setEvidenceReturnUrl, renderAddEvidence)
.post(setEvidenceReturnUrl, setEvidenceDocumentsOptions, postUpload)

router.use(
urls.investments.projects.interactions.index.route,
setCompanyDetails,
Expand Down

0 comments on commit 334e3ec

Please sign in to comment.