sendHtmlFile = async (req, res, file) => {
  const fullPath = path.join((await File.rootFolder()).location, file);
  const role = req.user && req.user.id ? req.user.role_id : 100;
  try {
    const scFile = await File.from_file_on_disk(
      path.basename(fullPath),
      path.dirname(fullPath)
    );
    if (scFile && role <= scFile.min_role_read) {
      res.sendFile(fullPath, { dotfiles: "allow" });
    } else {
      return res
        .status(404)
        .sendWrap(req.__("An error occurred"), req.__("File not found"));
    }
  } catch (e) {
    console.error(e);
    return res
      .status(404)
      .sendWrap(
        req.__("An error occurred"),
        e.message || req.__("An error occurred")
      );
  }
}
Send HTML file to client without any menu
@param {any} req
@param {any} res
@param {string} file
@returns