all repos — honk @ 50956be52df32a5362fd20621515f496f039ae16

my fork of honk

u
Anirudh Oppiliappan x@icyphox.sh
Sun, 24 Sep 2023 11:44:11 +0300
commit

50956be52df32a5362fd20621515f496f039ae16

parent

55c201ebb683f091777c421f03294b50ffed8b95

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M web.goweb.go

@@ -2895,6 +2895,7 @@ }

mux := mux.NewRouter() mux.Use(login.Checker) + mux.Use(logit) mux.Handle("/api", login.TokenRequired(http.HandlerFunc(apihandler)))

@@ -2985,11 +2986,9 @@ // mastoshit

mastopost := mux.Methods("POST").Subrouter() mastoget := mux.Methods("GET").Subrouter() - mastoget.Use(logit) mastoget.HandleFunc("/oauth/authorize", oauthorize) mastoget.HandleFunc("/api/v1/instance", instance) - mastopost.Use(logit) mastopost.HandleFunc("/api/v1/apps", apiapps) err = http.Serve(listener, mux)