code: function serveRawSwaggerFiles (req, res, next) {
      if (req.method === "GET" || req.method === "HEAD") {
        let configPath = getConfiguredPath(options.rawFilesPath);
        configPath = util.normalizePath(configPath, router);
        let reqPath = util.normalizePath(req.path, router);
  
        if (_.startsWith(reqPath, configPath) && context.parser && context.parser.$refs) {
          // Get the normalized path of the requested file, relative to the baseDir
          let relativePath = req.path.substring(configPath.length);
          if (_.startsWith(relativePath, "/")) {
            relativePath = relativePath.substring(1);
          }
          relativePath = path.normalize(util.normalizePath(relativePath, router));
  
          // See if any of the Swagger files match this path
          let filePath = _.find(context.parser.$refs.paths(), (file) => {
            let relativeFile = path.relative(baseDir, file);
            relativeFile = util.normalizePath(relativeFile, router);
            return relativeFile === relativePath;
          });
  
          if (filePath) {
            // Normalize the file path (required for Windows)
            filePath = path.normalize(filePath);
  
            util.debug("%s %s => Sending file %s", req.method, req.path, filePath);
            res.sendFile(filePath);
            return;
          }
          else {
            util.debug("%s %s does not match any files in the Swagger API", req.method, req.path);
          }
        }
      }
  
      next();
    }
docs: Serves the raw Swagger file(s).