geh that needs to be plain text
This commit is contained in:
parent
7b1ad30f89
commit
21f7705970
|
@ -28,7 +28,7 @@ function handle (offset, request, response) {
|
||||||
express()
|
express()
|
||||||
.get('/prev', (request, response) => handle(-1, request, response))
|
.get('/prev', (request, response) => handle(-1, request, response))
|
||||||
.get('/next', (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, () => {
|
.listen(process.env.PORT || 8080, () => {
|
||||||
console.log('doing the thing');
|
console.log('doing the thing');
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue