I have a NodeMediaServer to livestream to and save the vods. I want to add a custom endpoint to the HTTP server of NodeMediaServer. Is this possible or do I have to run an express server next to it? I know it is possible to access a single file but i havn't found a way to get all files which is what i want to accomplish.
const NodeMediaServer = require('node-media-server');
const { spawn } = require('child_process');
const path = require('path');
const fs = require('fs');
const express = require('express');
const app = express();
app.get('/vods', (req, res) => {
  res.send('Hello, this is a custom endpoint!');
});
const config = {
  logType: 3,
  http_api: 1,
  rtmp: {
    port: 1935,
    chunk_size: 60000,
    gop_cache: true,
    ping: 30,
    ping_timeout: 60
  },
  http: {
    port: 8000,
    allow_origin: '*',
    mediaroot: 'vods'
  }
};
var nms = new NodeMediaServer(config, app)
nms.run();