Taking the site down

parent 13e4da41
Pipeline #71367761 failed with stage
in 1 minute and 8 seconds
......@@ -122,6 +122,8 @@ app.use((req, res, next) => {
app.get(
'/',
(req, res) => {
return res.send('Site has been taken down due to spam.')
stats.home.inc()
const hmac = createTsSig()
......@@ -138,6 +140,8 @@ app.post(
'/',
limiter,
async (req, res) => {
return res.send('Site has been taken down due to spam.')
// deconstruct all of the input fields
console.log('body:', req.body)
const { url, name, email, location, ts, sig } = req.body
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment