aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-26 23:17:32 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-26 23:17:32 +0200
commit4d640c00bebc1a674efdeb84a8f9ea5e6db06469 (patch)
treec2544e3f8526e67078a59d2da2637c93a1bb80a8 /src
parentd227dff79ab02f98f1710881b11a20db12a0811f (diff)
Show response to everyone
Diffstat (limited to 'src')
-rw-r--r--src/server/routes/slack.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/routes/slack.js b/src/server/routes/slack.js
index 7f1b102..8b6ba5a 100644
--- a/src/server/routes/slack.js
+++ b/src/server/routes/slack.js
@@ -1,11 +1,11 @@
const express = require('express')
const router = express.Router()
-const request = require('request')
-const iconv = require('iconv-lite')
-router.post('/', function (req, res, next) {
- console.log(req);
- res.end('Will be implemented soon™!');
+router.all('/', function (req, res, next) {
+ res.json({
+ "response_type": "in_channel",
+ "text": "Will be implemented soon™!"
+ })
})
module.exports = router