This commit is contained in:
2025-02-19 00:10:44 +03:00
commit 1fac451ada
8 changed files with 279 additions and 0 deletions

11
api/index.js Normal file
View 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);
};