{"size": 507, "ext": "js", "max_stars_repo_path": "app/api/methods/registerUser.js", "max_stars_repo_name": "muqeet98/FID", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/api/methods/registerUser.js", "max_issues_repo_name": "muqeet98/FID", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/api/methods/registerUser.js", "max_forks_repo_name": "muqeet98/FID", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.35, "max_line_length": 61, "alphanum_fraction": 0.573964497}
import Api from 'app/api';
import ApiConstants from '../ApiConstants';

export default function registerUser(user) {
    return Api(
        ApiConstants.REGISTER,
        {
            username: user.username, 
            email: user.email, 
            password: user.password,
            password_confirmation: user.passwordConfirmation,
            dob: user.dob,
            gender: user.gender,
            notification_token: user.notificationToken
        },
        'POST',
        null
    );
}
