From 701e12c68576ca4f33e2f0eb94bbffb12ea27b1b Mon Sep 17 00:00:00 2001 From: notnull Date: Fri, 8 Feb 2019 06:58:09 -0800 Subject: [PATCH] added /api/robots --- api/robots.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 api/robots.js diff --git a/api/robots.js b/api/robots.js new file mode 100644 index 0000000..171058a --- /dev/null +++ b/api/robots.js @@ -0,0 +1,12 @@ +const router = require('express').Router() +module.exports = router + +// what you will hit at /api/robots +router.get('/', async (req, res, next) => { + try { + console.log('NSA was here') + res.status(201).send('FUCK YOU NSA\n') + } catch (err) { + next(err) + } +})