text: const express = require('express')
  const router = express.Router()
  // const radioButtonRedirect = require('radio-button-redirect')
  // router.use(radioButtonRedirect)
  
  // Add your routes here - above the module.exports line
  
  router.post('/sprint-24-25/queries/create-query', (req, res, next) => {
    console.log('/sprint-24-25/queries/create-query', req.session.data)
    const name = req.session.data['query-content']
    const section = req.session.data.source
  
    const queries = req.session.data.queries || []
    queries.push({ name, section })
    req.session.data.queries = queries
    res.redirect('/sprint-24-25/set-action/set-action-preparing-food')
  })
  
  router.post('/sprint-24-25/set-action/set-action-preparing-food', (req, res, next) => {
    console.log('this is preparing food')
    console.log(req.session.data)
    req.session.data.queries[req.session.data.queries.length - 1].action = req.session.data['set-an-action']
    console.log(1, req.session.data)
    res.redirect('/sprint-24-25/task-list')
  })
  
  module.exports = router
  //router.all('/current/check-router', function(req, res, next){
  //  var testQ = req.session.data['query-content']
  
  /*var preparingFood = "";
    if (req.session.data['query-content'] && req.session.data['query-content'] == "true") {
      //preparingFood = "query-content"; // quick way to append apointee journey to relevant screens
      console.log(preparingFood);
    }
  });*/
  
  /*router.all('/current/query-check', function(req, res) {
    if (req.session.data['query-content'] && req.session.data['query-content'] == "true") {
      //preparingFood = "query-content"; // quick way to append apointee journey to relevant screens
      console.log(preparingFood);
    }
  });*/
  /*function checkButton() {
  if(document.getElementById('A').checked) {
        document.getElementById("disp").innerHTML
            = "A";
    }
    else if(document.getElementById('B').checked) {
        document.getElementById("disp").innerHTML
            = "B";
    }
  */
  //});
  