cms/app-client/mirage/config.js
changeset 261 02e2396bcbbc
parent 245 c9dd78a43b07
child 274 53a6985443f8
equal deleted inserted replaced
260:64caee7ce38d 261:02e2396bcbbc
    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.baseURL.replace(/\/$/,'')+'/api/v1';
    16     this.namespace = ENV.rootURL.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     });