web/api: Fix typo which broke the 2.0 admin APIs.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
This commit is contained in:
parent
c4270fdbf4
commit
d70f850a18
|
@ -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…
Reference in New Issue