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:
10
server/index.js
Normal file
10
server/index.js
Normal 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);
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user