text: /*
  
  const Action = require('../actionsmodel');
  
  
  // /api/actions GET ALL PRODUCTS
  async function getActions(req, res) {
      try {
          const actions = await Action.findAll();
  
          res.writeHead(200, 'Content-Type', 'application/json');
          res.end(JSON.stringify(actions));
  
      } catch (error) {
          console.log(error);
      }
  }
  
  async function getAction(req, res, id) {
      try {
          const action = await Action.findByID();
  
          if (!action) {
              res.writeHead(400, 'Content-Type', 'application/json');
              res.end(JSON.stringify({ message: 'Action Not Found' }));
          } else {
  
              res.writeHead(200, 'Content-Type', 'application/json');
              res.end(JSON.stringify(actions));
  
          }
      } catch (error) {
          console.log(error);
      }
  }
  
  
  // /api/actions Create Action, POST REQUEST
  async function createAction(req, res) {
      try {
  
          //const body = await getPostData(req)
  
          //const { action, date, section, videoID, username } = JSON.parse(body);
          const actionParse = [{
              //buttons(params);
              
              action: "Walk",
              date: Date(),
              section: "Facial Expressions",
              videoID: '12345',
              username: 'CharleneP'
              
          }];
  
          const newAction = Action.create(actionParse);
  
          res.writeHead(201), { 'Content-Type': 'application/json' }
  
          //originally was res.send(JSON.stringify(newAction));
          return res.end(JSON.stringify(newAction));
  
      } catch (error) {
          console.log(error);
      }
  }
  
  
  module.exports = {
      getActions,
      getAction,
      createAction
  }
  
  */
  