Skip to content

Commit

Permalink
Add mirage get post route
Browse files Browse the repository at this point in the history
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
Josh Justice authored and CodingItWrong committed Sep 6, 2018
1 parent 2932870 commit c637611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mirage/config.js
@@ -1,3 +1,4 @@
export default function() {
this.post('/posts');
this.get('/posts/:id');
}

0 comments on commit c637611

Please sign in to comment.