From 763c2ace659b8dcf8c924a8ff12928d5caefad96 Mon Sep 17 00:00:00 2001 From: junxu Date: Mon, 18 May 2015 02:49:10 +0000 Subject: [PATCH] Fix misuse urlNwName and urlNwID in api. Signed-off-by: junxu --- api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 6e2b3fb..c84e40f 100644 --- a/api/api.go +++ b/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, },