From 34f2ed73383e0768d973b276b74e740bae54f209 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 11 Nov 2013 13:07:52 +0000 Subject: [PATCH] feature(config) api_url -> apiURL --- json/config.json | 2 +- lib/client/dom.js | 2 +- lib/server/rest.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/json/config.json b/json/config.json index 04f5e7e8..91ab8dd8 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "api_url": "/api/v1", + "apiURL": "/api/v1", "appcache": false, "analytics": true, "localStorage": true, diff --git a/lib/client/dom.js b/lib/client/dom.js index c22ee5e1..dd335878 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -211,7 +211,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; else lData = p.data; - p.url = pConfig && pConfig.api_url + p.url, + p.url = pConfig && pConfig.apiURL + p.url, Loader.ajax({ method : p.method, url : p.url, diff --git a/lib/server/rest.js b/lib/server/rest.js index 14a3f0f1..3d0b73de 100644 --- a/lib/server/rest.js +++ b/lib/server/rest.js @@ -36,7 +36,7 @@ var lRet = main.checkParams(pParams); if (lRet) { - var lAPIURL = main.config.api_url, + var lAPIURL = main.config.apiURL, p = pParams; lRet = Util.isContainStr(p.name, lAPIURL);