1
0
mirror of https://gitlab.com/ceda_ei/git-alerts-bot synced 2025-11-05 06:40:06 +01:00

[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
server/index.js Normal file
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);
});
};