cms/app-client/mirage/config.js
changeset 261 02e2396bcbbc
parent 245 c9dd78a43b07
child 274 53a6985443f8
--- a/cms/app-client/mirage/config.js	Sat Aug 06 21:27:53 2016 +0700
+++ b/cms/app-client/mirage/config.js	Sat Aug 06 21:29:33 2016 +0700
@@ -13,7 +13,7 @@
     */
     // this.urlPrefix = '';    // make this `http://localhost:8080`, for example, if your API is on a different server
     // this.namespace = '';    // make this `api`, for example, if your API is namespaced
-    this.namespace = ENV.baseURL.replace(/\/$/,'')+'/api/v1';
+    this.namespace = ENV.rootURL.replace(/\/$/,'')+'/api/v1';
     // this.timing = 400;      // delay for each request, automatically set to 0 during testing
 
     this.get('/documents', function({ documents }) {