{"size": 723, "ext": "js", "max_stars_repo_path": "controllers/htmlLanding.js", "max_stars_repo_name": "asconwe/bucket", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "controllers/htmlLanding.js", "max_issues_repo_name": "asconwe/bucket", "max_issues_repo_issues_event_min_datetime": "2017-05-16T01:14:49.000Z", "max_issues_repo_issues_event_max_datetime": "2017-05-16T01:32:16.000Z", "max_forks_repo_path": "controllers/htmlLanding.js", "max_forks_repo_name": "asconwe/bucket", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 34.4285714286, "max_line_length": 94, "alphanum_fraction": 0.5546334716}
var messages = {
    new: 'User profile successfully created - sign in!',
    authFailed: 'That username/password combination does not match an account in our database'
}

module.exports = function (app) {
    //================= Listen for get requests on the / route
    app.get('/', function (req, res) {
        var message = null;
        // if there is a req.query.m, get that message from the messages object
        if (req.query.m) {
            var message = messages[req.query.m]
        }
        //================= Render landing page with a message if there is one
        res.render('index', {
            style: 'landing',
            message: message,
            status: req.query.m
        });
    });
}