In order to view this lesson, you must purchase this course.
Now that we're logged into the system, we'll want to ask the server for the post objects that belong to our user. This is rather simple using the req.wantsJSON check from with SailsMVC. This mechanism is quite common amongst backend frameworks and works for requests asking for "application/json" content from with headers. Once we get data back in JSON format, it's only a matter of setting up our JSONDecoder and models objects to finish up the task. We'll have our list of post objects rendered out in iOS by the end of the lesson.