const express = require('express');
const app = express();
require('dotenv').config();
app.use(express.static("public"));
app.get('/', (req, res) => {
res.send("
Doing things!
")
})
app.get('/endpoint', (req, res) => {
const { thing } = req.query;
res.send(`Doing other things with ${thing}
`);
})
app.listen(process.env.PORT, () => {
console.log('listening on ' + process.env.PORT);
})