added root ok
nclazz/gitea-bot/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-11-28 13:44:57 +01:00
parent cfe7bbfc1c
commit 7603cd79ec
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ app.use(bodyParser.json())
const port = process.env.SERVER_PORT || 8080
app.get('/', (req, res) => {
res.status(200).send('OK')
})
app.post('/webhook', async (req, res) => {
const selectedHooks = []
if(req.query['hooks']) {