mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
Merge branch 'development' into development
This commit is contained in:
commit
e86c2cf610
6 changed files with 450 additions and 329 deletions
|
@ -23,7 +23,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
version = "2.6.8"
|
||||
version = "2.6.9"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -185,6 +185,10 @@ func main() {
|
|||
hooksURL = "/" + *hooksURLPrefix + "/{id}"
|
||||
}
|
||||
|
||||
router.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
||||
fmt.Fprintf(w, "OK")
|
||||
})
|
||||
|
||||
router.HandleFunc(hooksURL, hookHandler)
|
||||
|
||||
n.UseHandler(router)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue