From ed33f010d5f52bbd854ab36b77e0ef9d8f395204 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) + } +})