parent
8897e35398
commit
75b75358cd
16 changed files with 200 additions and 34 deletions
|
@ -1,26 +1,5 @@
|
|||
import config from '../config/environment';
|
||||
|
||||
export default function() {
|
||||
|
||||
// These comments are here to help you get started. Feel free to delete them.
|
||||
|
||||
/*
|
||||
Config (with defaults).
|
||||
|
||||
Note: these only affect routes defined *after* them!
|
||||
*/
|
||||
|
||||
// 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.timing = 400; // delay for each request, automatically set to 0 during testing
|
||||
|
||||
/*
|
||||
Shorthand cheatsheet:
|
||||
|
||||
this.get('/posts');
|
||||
this.post('/posts');
|
||||
this.get('/posts/:id');
|
||||
this.put('/posts/:id'); // or this.patch
|
||||
this.del('/posts/:id');
|
||||
|
||||
http://www.ember-cli-mirage.com/docs/v0.2.x/shorthands/
|
||||
*/
|
||||
this.passthrough(`${config.APP.API_HOST}/api/auth/login/`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue