Browse Source

Merge pull request #165 from junxu/fix-api

Fix misuse urlNwName and urlNwID in api.
Madhu Venugopal 10 năm trước cách đây
mục cha
commit
541e96db49
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libnetwork/api/api.go

+ 1 - 1
libnetwork/api/api.go

@@ -69,7 +69,7 @@ func (h *httpHandler) initRouter() {
 			"/networks/name/{" + urlNwName + ":.*}/endpoints/":                            procGetEndpoints,
 			"/networks/id/{" + urlNwID + ":.*}/endpoints/":                                procGetEndpoints,
 			"/networks/name/{" + urlNwName + ":.*}/endpoints/name/{" + urlEpName + ":.*}": procGetEndpoint,
-			"/networks/id/{" + urlNwName + ":.*}/endpoints/name/{" + urlEpName + ":.*}":   procGetEndpoint,
+			"/networks/id/{" + urlNwID + ":.*}/endpoints/name/{" + urlEpName + ":.*}":     procGetEndpoint,
 			"/networks/name/{" + urlNwName + ":.*}/endpoints/id/{" + urlEpID + ":.*}":     procGetEndpoint,
 			"/networks/id/{" + urlNwID + ":.*}/endpoints/id/{" + urlEpID + ":.*}":         procGetEndpoint,
 		},