cms/app-client/mirage/config.js
changeset 318 5564f5065f81
parent 307 07b44a378ad8
child 319 78990a8a069b
equal deleted inserted replaced
317:e653de66f252 318:5564f5065f81
    11 
    11 
    12       Note: these only affect routes defined *after* them!
    12       Note: these only affect routes defined *after* them!
    13     */
    13     */
    14     // this.urlPrefix = '';    // make this `http://localhost:8080`, for example, if your API is on a different server
    14     // this.urlPrefix = '';    // make this `http://localhost:8080`, for example, if your API is on a different server
    15     // this.namespace = '';    // make this `api`, for example, if your API is namespaced
    15     // this.namespace = '';    // make this `api`, for example, if your API is namespaced
    16     this.namespace = ENV.rootURL.replace(/\/$/,'')+'/api/v1';
    16     this.namespace = ENV.backRootURL.replace(/\/$/,'')+'/api/v1';
    17     // this.timing = 400;      // delay for each request, automatically set to 0 during testing
    17     // this.timing = 400;      // delay for each request, automatically set to 0 during testing
    18 
    18 
    19     this.get('/documents', function({ documents }) {
    19     this.get('/documents', function({ documents }) {
    20         return this.serialize(documents.all(), 'sparse-document');
    20         return this.serialize(documents.all(), 'sparse-document');
    21     });
    21     });