const router = require('express').Router()

const contactController = require('./controllers/details')
const contactEditController = require('./controllers/edit')
const contactArchiveController = require('./controllers/archive')
const contactInteractionController = require('./controllers/interactions')

router.get('/:contactId', contactController.getCommon, contactController.getDetails)

router
  .route('/create')
  .get(contactEditController.editDetails)
  .post(contactEditController.postDetails)

router
  .route('/:contactId/edit')
  .get(contactController.getCommon, contactEditController.editDetails)
  .post(contactEditController.postDetails)

router.post('/:id/archive', contactArchiveController.archiveContact)
router.get('/:id/unarchive', contactArchiveController.unarchiveContact)

router.get('/:contactId/interactions', contactController.getCommon, contactInteractionController.getInteractions)

module.exports = router

@@ -302,94 +302,8 @@
 ')%0A%0A
-router.get('/:contactId', contactController.getCommon, contactController.getDetails)%0A%0A
 rout
@@ -407,24 +407,110 @@
 stDetails)%0A%0A
+router.get('/:contactId', contactController.getCommon, contactController.getDetails)%0A%0A
 router%0A  .ro

Allow the router to process create/ before attemtpting :contactId