Skip to content

Commit 5ac291b

Browse files
author
Hans Kristian Flaatten
committed
feat(slack): initial action route handler
1 parent 8c45fe0 commit 5ac291b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/slack/controller.js

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ route.get('/oauth', (req, res, next) => {
1818
return res.redirect(`${base}?code=${code}&client_id=${client}&client_secret=${secret}`);
1919
});
2020

21+
route.use('/action', (req, res, next) => {
22+
next();
23+
});
24+
25+
route.post('/action', (req, res, next) => {
26+
console.log(req.body); // eslint-disable-line
27+
res.json({ text: 'Work in progress :shipit:' });
28+
});
29+
2130
route.get('*', (req, res) => res.redirect('/'));
2231

2332
module.exports = route;

0 commit comments

Comments
 (0)