From bf73b78ed71da3c115cc654090fbaa2972c982d9 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 15 Feb 2024 22:42:33 -0600 Subject: [PATCH] chore: tidy --- packages/web/src/server/http.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/web/src/server/http.js b/packages/web/src/server/http.js index b563247..15e1069 100644 --- a/packages/web/src/server/http.js +++ b/packages/web/src/server/http.js @@ -206,12 +206,6 @@ export const createHttpServer = async (flecks) => { else { // Serve the document root, sans index. app.use(express.static(join(FLECKS_CORE_ROOT, 'dist', 'web'), {index: false})); - // Tests bypass middleware and stream processing. - app.get('/tests.html', (req, res) => { - res.setHeader('Content-Type', 'text/html; charset=UTF-8'); - const stream = createReadStream(join(FLECKS_CORE_ROOT, 'dist', 'web', 'tests.html')); - stream.pipe(res); - }); // Fallback to serving HTML. app.get('*', routeMiddleware, async (req, res) => { if (req.accepts('text/html')) {