From 21f77059703cf9f3e37954d74f728d22a062ba99 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 1 Jul 2023 17:01:57 -0400 Subject: [PATCH] geh that needs to be plain text --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index f73812b..13dc85b 100644 --- a/index.mjs +++ b/index.mjs @@ -28,7 +28,7 @@ function handle (offset, request, response) { express() .get('/prev', (request, response) => handle(-1, request, response)) .get('/next', (request, response) => handle(+1, request, response)) - .get('/list', (request, response) => response.send(sites.join('\n'))) + .get('/list', (_, response) => response.type('txt').send(sites.join('\n'))) .listen(process.env.PORT || 8080, () => { console.log('doing the thing'); })