static getFields (req, res) {
    if (!internals.fieldsMap) {
      res.status(404);
      res.send('Cannot locate fields');
    }

    if (req.query && req.query.array) {
      res.send(internals.fieldsArr);
    } else {
      res.send(internals.fieldsMap);
    }
  }
GET - /api/fields

Gets available database field objects pertaining to sessions.
@name /fields
@param {boolean} array=false Whether to return an array of fields, otherwise returns a map
@returns {array/map} The map or list of database fields