Skip to content

Commit

Permalink
Add post route
Browse files Browse the repository at this point in the history
Outer red: Your Ember app tried to GET '/posts/1', but there was no route defined to handle this request. Define a route that matches this path in your mirage/config.js file. Did you forget to add your namespace?

The next error is in Mirage again: we now get to the post show page, but Mirage isn't configured to retrieve a post by ID.
  • Loading branch information
Josh Justice authored and CodingItWrong committed Jan 12, 2019
1 parent 2f20a62 commit a698031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mirage/config.js
@@ -1,2 +1,3 @@
export default function() { export default function() {
this.post('/posts');
} }

0 comments on commit a698031

Please sign in to comment.