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