Fix misuse urlNwName and urlNwID in api.

Signed-off-by: junxu <xujun@cmss.chinamobile.com>
This commit is contained in:
junxu 2015-05-18 02:49:10 +00:00
parent 80ad544b26
commit 4aa71f337c
1 changed files with 1 additions and 1 deletions

View File

@ -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,
},