diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-09-26 23:17:32 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-09-26 23:17:32 +0200 |
commit | 4d640c00bebc1a674efdeb84a8f9ea5e6db06469 (patch) | |
tree | c2544e3f8526e67078a59d2da2637c93a1bb80a8 /src | |
parent | d227dff79ab02f98f1710881b11a20db12a0811f (diff) |
Show response to everyone
Diffstat (limited to 'src')
-rw-r--r-- | src/server/routes/slack.js | 10 |
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 |