u
Anirudh Oppiliappan x@icyphox.sh
Sun, 24 Sep 2023 11:44:11 +0300
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
web.go
→
web.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)