Browse Source

web/api: Fix typo which broke the 2.0 admin APIs.

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
reviewable/pr3240/r1
Goutham Veeramachaneni 7 years ago
parent
commit
d70f850a18
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD
  1. 2
      web/web.go

2
web/web.go

@ -414,7 +414,7 @@ func (h *Handler) Run(ctx context.Context) error {
mux.Handle(apiPath+"/v1/", http.StripPrefix(apiPath+"/v1", av1))
mux.Handle(apiPath, http.StripPrefix(apiPath,
mux.Handle(apiPath+"/", http.StripPrefix(apiPath,
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
setCORS(w)
hh.ServeHTTP(w, r)

Loading…
Cancel
Save