UNPKG

generator-sails-rest-api

Version:

Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features

23 lines (19 loc) 477 B
"use strict"; /** * Policy Mappings * * Policies are simple functions which run before your controllers. * You can apply one or more policies to a given controller, or protect * its actions individually. * * Any policy file (e.g. `api/policies/authenticated.js`) can be accessed * below by its filename, minus the extension, (e.g. "authenticated") */ module.exports = { policies: { '*': ['isAuthenticated'], AuthController: { '*': true } } };