Here is my controller, I want to validate body parameter like name and mobile, email, etc. How to do that.
/**
- RegisterController
- @description :: Server-side actions for handling incoming requests.
- @help :: See https://sailsjs.com/docs/concepts/actions */
module.exports = {
register:async(req,res,next)=>{ return res.send({ 'status': 'success','message':'registration successfully'},200); }
};