Chapter 7. Custom actions

This chapter covers

  • Demystifying controllers, actions, and routes
  • Developing custom action implementation requirements from requests
  • Transitioning blueprint actions into custom actions
  • Using the req and res dictionaries in actions
  • Completing a working user identity management system

Recall that our clients have asked us to build functionality that allows them to control access to Brushfire and, more specifically, to indirectly control the content of the site. In a nutshell, we’re attempting to enable 24/7 ubiquitous cat content! In chapter 6, you completed the first part of user identity management, which involved creating and configuring a user model that will hold attributes to identify a user. In this chapter, ...

Get Sails.js in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.