presence-button-web-glitch/server.js

8 lines
284 B
JavaScript
Raw Permalink Normal View History

const http = require('http')
const server = http.createServer((req, res) => {
res.writeHead(302, {'Location': 'https://presence.fuz.re' + req.url})
res.end();
})
server.listen(process.env.PORT || 3000, () => console.log('Your app is listening on port ' + server.address().port))