cont3xt/cont3xt.js
/**
 * GET - /api/settings
 *
 * Returns all the settings relevant for the cont3xt settings page
 * @name /settings
 * @returns {boolean} success - True if the request was successful, false otherwise
 * @returns {object} settings - General cont3xt settings
 * @returns {LinkGroup[]} linkGroups - An array of link groups that the logged in user can view/edit
 */
/api/settings
Returns all the settings relevant for the cont3xt settings page
@name /settings
@returns {boolean} success - True if the request was successful, false otherwise
@returns {object} settings - General cont3xt settings
@returns {LinkGroup[]} linkGroups - An array of link groups that the logged in user can view/edit
/ api / settings Returns all the settings relevant for the cont3xt settings page @name / settings @returns { boolean } success - True if the request was successful false otherwise @returns { object } settings - General cont3xt settings @returns { LinkGroup [] } linkGroups - An array of link groups that the logged in user can view / edit
function apiGetSettings (req, res, next) {
  const cont3xt = req.user.cont3xt ?? {};
  res.send({
    success: true,
    settings: cont3xt.settings ?? {},
    linkGroup: cont3xt.linkGroup ?? {}
  });
}
function apiGetSettings ( req , res , next ) { const cont3xt = req . user . cont3xt ?? { } ; res . send ( { success : true , settings : cont3xt . settings ?? { } , linkGroup : cont3xt . linkGroup ?? { } } ) ; }
GET - /api/settings
 Returns all the settings relevant for the cont3xt settings page
 @name /settings
 @returns {boolean} success - True if the request was successful, false otherwise
 @returns {object} settings - General cont3xt settings
 @returns {LinkGroup[]} linkGroups - An array of link groups that the logged in user can view/edit
GET - / api / settings Returns all the settings relevant for the cont3xt settings page @name / settings @returns { boolean } success - True if the request was successful false otherwise @returns { object } settings - General cont3xt settings @returns { LinkGroup [] } linkGroups - An array of link groups that the logged in user can view / edit