-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f175b0
commit 1e5d784
Showing
6 changed files
with
269 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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'); | ||
https://www.ember-cli-mirage.com/docs/route-handlers/shorthands | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default function(/* server */) { | ||
|
||
/* | ||
Seed your development database using your factories. | ||
This data will not be loaded in your tests. | ||
*/ | ||
|
||
// server.createList('post', 10); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { JSONAPISerializer } from 'ember-cli-mirage'; | ||
|
||
export default JSONAPISerializer.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.