Permalink
Browse files

Add mirage get post route

We configure Mirage to return a post retrieved by ID. This allows the post detail screen to be displayed.

Outer Red:
✘ Element .js-post-detail-title has text "Test Post"
✘ Element .js-post-detail-body has text "This post is a test!"

The title is not shown because the data from our create post form isn't actually submitted.
  • Loading branch information...
CodingItWrong committed Jan 11, 2018
1 parent a698031 commit 231c445b8084e20b2dfb71c402260457bd8bfa72
Showing with 1 addition and 0 deletions.
  1. +1 −0 mirage/config.js
@@ -1,3 +1,4 @@
export default function() {
this.post('/posts');
this.get('/posts/:id');
}

0 comments on commit 231c445

Please sign in to comment.