Commit 605a487
Support multiple webhooks on a single flask app (bloomberg#7)
When `endpoint` argument is not passed to `app.add_url_rule`, flask uses `view_func.__name__` to uniquely identify callbacks. This results in all callbacks having the same "unique" idenfitier: `_postreceive`.
An easy fix is to explicitly pass in an endpoint name, which can be identical to rule name.
Signed-Off-By: Frederic Spieler <[email protected]>1 parent 24b9e52 commit 605a487
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments