check secret

This commit is contained in:
2024-06-18 21:04:58 +01:00
parent 793977d710
commit 3311307edd

View File

@@ -60,6 +60,7 @@ app.get('/articles/:articleName', (req, res) => {
// Webhook handler
app.post('/api', (req, res) => {
console.log('hit!');
console.log('GITEA_SECRET:', process.env.GITEA_SECRET);
const signature = req.headers['x-gitea-signature'];
const payload = JSON.stringify(req.body);