diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-04-30 02:04:30 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-04-30 02:04:30 +0300 |
| commit | 0c18e3de45c432ee1ed955f0bc543d695189d0e0 (patch) | |
| tree | ff9dfc28899f3c798c9880cda12a4815f4a93c47 /src/client | |
| parent | 13a846813a1cf192355485197fc144d37e34eb63 (diff) | |
add '/api' prefix to REST api calls, help differentiate from end-user HTTP paths
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/rz_api_backend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js index 9401e6f1..9b360f75 100644 --- a/src/client/rz_api_backend.js +++ b/src/client/rz_api_backend.js @@ -237,7 +237,7 @@ define(['util', 'model/core'], function(util, model_core) { this.rzdoc_create = function(rzdoc_name, on_success, on_error) { var req_opts = { type : 'POST' }; - return ajax_rs('/rzdoc/' + rzdoc_name + '/create', req_opts, on_success, on_error); + return ajax_rs('/api/rzdoc/' + rzdoc_name + '/create', req_opts, on_success, on_error); } /** @@ -246,7 +246,7 @@ define(['util', 'model/core'], function(util, model_core) { this.rzdoc_list = function(on_success, on_error) { var req_opts = { type : 'POST' }; - return ajax_rs('/rzdoc/list', req_opts, on_success, on_error); + return ajax_rs('/api/rzdoc/list', req_opts, on_success, on_error); } } |
