Skip to content

Commit b925a11

Browse files
committed
feat: add simple notice to /hook endpoint
1 parent ed06771 commit b925a11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ function verifyWebhook(body, signatureHeader, secret) {
4848
return computedSignature === signature;
4949
}
5050

51+
app.get('/hook', (req, res) => {
52+
res.status(200).send('ghostposter is listening for webhooks here! https://github.com/gitlimes/ghostposter')
53+
})
54+
5155
app.post("/hook", express.json(), (req, res) => {
5256
const signatureHeader = req.headers["x-ghost-signature"];
5357

0 commit comments

Comments
 (0)