app/Controllers/Resources/Users.js
/**
   *  Create a user, will send response with the new user
   *
   *  @return {void}
   */
Create a user, will send response with the new user
@return {void}
Create a user will send response with the new user @return { void }
createUser() {
    const usersModel = this.getModel('Users.js');
    return new Promise((resolve, reject) => {
      usersModel.createUser(this.getCreateParams()).then((user) => {
        user = this.formatResource(user.dataValues, 'resource:users:get');
        this.getResponse().json(user);
        resolve();
      }, (err) => {
        reject(err);
      });
    });
  }
createUser ( ) { const usersModel = this . getModel ( 'Users.js' ) ; return new Promise ( ( resolve , reject ) => { usersModel . createUser ( this . getCreateParams ( ) ) . then ( ( user ) => { user = this . formatResource ( user . dataValues , 'resource:users:get' ) ; this . getResponse ( ) . json ( user ) ; resolve ( ) ; } , ( err ) => { reject ( err ) ; } ) ; } ) ; }
Create a user, will send response with the new user
  @return {void}
Create a user will send response with the new user @return { void }