Skip to content

Commit

Permalink
Add webhook routes for handling incoming requests
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecro committed Feb 19, 2025
1 parent daa4ffb commit 5cbc886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const initiativeRoutes = require('./initiative');
const challengeRoutes = require('./challenge');
const memberRoutes = require('./member');
const resourceRoutes = require('./resource');
const webhookRoutes = require('./webhook');
const reporterRoutes = require('./reporter');
const faqRoutes = require('./faq');
const authenticate = require('../middlewares/authenticate');
Expand All @@ -29,6 +30,7 @@ module.exports = app => {
app.use('/challenges', challengeRoutes);
app.use('/members', memberRoutes);
app.use('/resources', resourceRoutes);
app.use('/webhook', webhookRoutes);
app.use('/test', testRoutes);
app.use('/reporter', reporterRoutes)
};
Expand Down
2 changes: 2 additions & 0 deletions routes/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ router.post('/whatsapp',


// -----------------------------------------------

module.exports = router;

0 comments on commit 5cbc886

Please sign in to comment.