diff options
Diffstat (limited to 'cmd/xesite/main.go')
| -rw-r--r-- | cmd/xesite/main.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go index 1a6284d..def2b50 100644 --- a/cmd/xesite/main.go +++ b/cmd/xesite/main.go @@ -117,19 +117,6 @@ func main() { gh := &GitHubWebhook{fs: fs} s := hmacsig.Handler256(gh, *githubSecret) mux.Handle("/.within/hook/github", s) - - mux.HandleFunc("/.within/hook/localonlybegood", func(w http.ResponseWriter, r *http.Request) { - if err := fs.Update(r.Context()); err != nil { - if err == git.NoErrAlreadyUpToDate { - w.WriteHeader(http.StatusOK) - fmt.Fprintln(w, "already up to date") - return - } - log.Println(err) - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } - }) mux.Handle("/.within/hook/patreon", &PatreonWebhook{fs: fs}) |
