equal
deleted
inserted
replaced
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 }); |