Created
January 21, 2022 08:59
-
-
Save adityawibisana/86f1be6780110e2e5f6e229dc0399ddb to your computer and use it in GitHub Desktop.
Sails Policies https://medium.com/p/368d1713a82f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const requiredParam = require("../api/policies/requiredParam") | |
module.exports.policies = { | |
UserController: { | |
register: requiredParam("username"), | |
login: requiredParam("username") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment