static async apiGet (req, res, next) {
    const all = req.query.all && req.user.hasRole('cont3xtAdmin');
    const roles = await req.user.getRoles();
    const views = await Db.getMatchingViews(req.user.userId, [...roles], all);

    // Set editable on any views that the user is allowed to edit
    for (const view of views) {
      view._editable = view.creator === req.user.userId || req.user.hasRole(view.editRoles) || all;
      view._viewable = view.creator === req.user.userId || req.user.hasRole(view.viewRoles) || all;
    }

    res.send({ success: true, views });
  }
GET - /api/views

Returns views that the requesting user is allowed to view.
@name /views
@returns {Cont3xtView[]} views - An array of views that the logged in user can view
@returns {boolean} success - True if the request was successful, false otherwise