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:
Goutham Veeramachaneni 2017-10-04 17:02:32 +05:30
parent c4270fdbf4
commit d70f850a18
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD
1 changed files with 1 additions and 1 deletions

View File

@ -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)