View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

myApp/api/controllers/UserController.js

Purposes

This file was created when you ran 'sails generate api User'. It contains all of the controller logic for the model called 'User'.

This is where you will put "controller actions" that send data to your clients and render the views which display that data.

/**
 * UserController
 *
 * @description :: Server-side logic for managing users
 * @help        :: See http://sailsjs.org/documentation/concepts/Controllers
 */

module.exports = {

};

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.