From 0c18e3de45c432ee1ed955f0bc543d695189d0e0 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Thu, 30 Apr 2015 02:04:30 +0300 Subject: add '/api' prefix to REST api calls, help differentiate from end-user HTTP paths --- src/client/rz_api_backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') 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); } } -- cgit v1.3.1