{"size": 523, "ext": "js", "max_stars_repo_path": "NODE-EXPRESS/NodeJs-ExpressJs-Mongodb-With-Mongoose-master/MeanStackLoginRegister/routes/register.js", "max_stars_repo_name": "DevelopByTarun/TODAY-HELP", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "NODE-EXPRESS/NodeJs-ExpressJs-Mongodb-With-Mongoose-master/MeanStackLoginRegister/routes/register.js", "max_issues_repo_name": "DevelopByTarun/TODAY-HELP", "max_issues_repo_issues_event_min_datetime": "2019-12-20T06:14:41.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T08:05:02.000Z", "max_forks_repo_path": "NODE-EXPRESS/NodeJs-ExpressJs-Mongodb-With-Mongoose-master/MeanStackLoginRegister/routes/register.js", "max_forks_repo_name": "DevelopByTarun/TODAY-HELP", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 34.8666666667, "max_line_length": 80, "alphanum_fraction": 0.7017208413}
var express = require("express");
var router = express.Router();
var registerOperations = require("../database/registerOperation/registerDb.js");

router.post("/register", function(request, response) {
    // console.log("Inside Register :: ", request.body);
    var registerObject = {
        username: request.body.username,
        password: request.body.password
    };
    // console.log("Get The Register ", registerObject);
    registerOperations.registerUser(registerObject, response);
});

module.exports = router;