From 1f0a0e4bc08feb28342feac8385be96016f36c41 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Thu, 29 May 2025 23:27:42 +0100 Subject: [PATCH] fic: add endpoint to serve configure.txt file --- packages/server/src/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts index 66230b05..ddbab296 100644 --- a/packages/server/src/app.ts +++ b/packages/server/src/app.ts @@ -49,6 +49,9 @@ stremioRouter.use(corsMiddleware); stremioRouter.use('/manifest.json', manifest); stremioRouter.use('/stream', stream); stremioRouter.use('/configure', configure); +stremioRouter.use('/configure.txt', (req, res) => { + res.sendFile(path.join(__dirname, '../../frontend/out/index.txt')); +}); // Protected routes with authentication const stremioAuthRouter = express.Router({ mergeParams: true }); @@ -57,6 +60,9 @@ stremioAuthRouter.use(userDataMiddleware); stremioAuthRouter.use('/manifest.json', manifest); stremioAuthRouter.use('/stream', stream); stremioAuthRouter.use('/configure', configure); +stremioAuthRouter.use('/configure.txt', (req, res) => { + res.sendFile(path.join(__dirname, '../../frontend/out/index.txt')); +}); stremioAuthRouter.use('/meta', meta); stremioAuthRouter.use('/catalog', catalog); stremioAuthRouter.use('/subtitles', subtitle);