geh that needs to be plain text

This commit is contained in:
Erin 2023-07-01 17:01:57 -04:00
parent 7b1ad30f89
commit 21f7705970

View file

@ -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');
})