소스 검색

Merge pull request #165 from junxu/fix-api

Fix misuse urlNwName and urlNwID in api.
Madhu Venugopal 10 년 전
부모
커밋
541e96db49
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,
 		},