From 4d640c00bebc1a674efdeb84a8f9ea5e6db06469 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 26 Sep 2017 23:17:32 +0200 Subject: Show response to everyone --- src/server/routes/slack.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/routes') 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 -- cgit v1.1