init
This commit is contained in:
11
api/index.js
Normal file
11
api/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { webhook, cleanup } = require('./webhook');
|
||||
|
||||
module.exports = async (req, res) => {
|
||||
// Check if it's a cron cleanup request
|
||||
if (req.headers['x-vercel-cron']) {
|
||||
return cleanup(req, res);
|
||||
}
|
||||
|
||||
// Otherwise handle as webhook
|
||||
return webhook(req, res);
|
||||
};
|
Reference in New Issue
Block a user