{"size": 841, "ext": "js", "max_stars_repo_path": "app/routes/altformats.js", "max_stars_repo_name": "dwp/gysp-citizen", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes/altformats.js", "max_issues_repo_name": "dwp/gysp-citizen", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/altformats.js", "max_forks_repo_name": "dwp/gysp-citizen", "max_forks_repo_forks_event_min_datetime": "2021-04-10T22:20:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-10T22:20:03.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 19.5581395349, "max_line_length": 61, "alphanum_fraction": 0.6337693222}
const express = require('express');
const router = express.Router()


router.post('/altformats/prison', (req, res) => {
  res.redirect('/altformats/lived-abroad')
})
;

router.post('/altformats/lived-abroad', (req, res) => {
  res.redirect('/altformats/worked-abroad')
})
;


router.post('/altformats/worked-abroad', (req, res) => {
  res.redirect('/altformats/marital-status')
})
;

router.post('/altformats/marital-status', (req, res) => {
  res.redirect('/altformats/contact')
})
;

router.post('/altformats/contact', (req, res) => {
  res.redirect('/altformats/alt-formats')
})
;

  // Alt formats yes/no
  router.post('/altformats/alt-formats', function(req, res) {
    if (req.body['alt-formats'] === 'yes') {
      res.redirect('alt-formats-choice');
    } else {
      res.redirect('bank');
    }
  });



  module.exports = router;
