diff --git a/libnetwork/api/api.go b/libnetwork/api/api.go index 6e2b3fbd70..c84e40f85d 100644 --- a/libnetwork/api/api.go +++ b/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, },