[refactor] Move server logic to /server

This commit is contained in:
Muthu Kumar
2018-11-27 21:24:06 +05:30
parent 968f1a8e1e
commit 1199d4e20d
4 changed files with 36 additions and 15 deletions
+10
View File
@@ -0,0 +1,10 @@
module.exports = app => {
app.get("/webhook/:provider", (req, res) => {
const strategy = req.params.provider;
const eventType = req.convert.getEvent[strategy](req.body);
});
};