Permalink
Browse files

Add post route

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...
CodingItWrong committed Jan 11, 2018
1 parent 6c2eed2 commit 190a2ff3deb4d09abadf08186e4764dec5fb2da2
Showing with 1 addition and 0 deletions.
  1. +1 −0 mirage/config.js
@@ -1,2 +1,3 @@
export default function() {
this.post('/posts');
}

0 comments on commit 190a2ff

Please sign in to comment.