We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/
1 parent 758fa0e commit 3c4147cCopy full SHA for 3c4147c
starquery.go
@@ -61,6 +61,10 @@ func New(ctx context.Context, opts Options) *API {
61
closeFunc: cancel,
62
}
63
64
+ api.mux.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) {
65
+ w.WriteHeader(http.StatusTemporaryRedirect)
66
+ w.Header().Set("Location", "https://github.com/coder/starquery")
67
+ })
68
api.mux.HandleFunc("GET /{org}/{repo}/user/{username}", api.handleStarredByUser)
69
api.mux.HandleFunc("POST /webhook", api.handleWebhook)
70
0 commit comments