From 4e2eb873267d3313e93fee67dd0eca244cc0bebc Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 22 Oct 2023 12:50:01 -0400 Subject: cmd/xesite: fuck Signed-off-by: Xe Iaso --- cmd/xesite/main.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cmd') 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}) -- cgit v1.2.3