{"size": 707, "ext": "js", "max_stars_repo_path": "routes/seeder.js", "max_stars_repo_name": "Hadh/Cord-System-Photon", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/seeder.js", "max_issues_repo_name": "Hadh/Cord-System-Photon", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/seeder.js", "max_forks_repo_name": "Hadh/Cord-System-Photon", "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": 26.1851851852, "max_line_length": 74, "alphanum_fraction": 0.6350777935}
var express = require('express');
var router  = express.Router();
var mongoose = require('mongoose');
var fs = require('fs');


router.get('/',function(req,res,next){
    fs.readFile('./data/User.json',function(err,users){
      mongoose.model('users').collection.insert(JSON.parse(users));
      res.end();
    });
    fs.readFile('./data/Car.json',function(err,cars){
      mongoose.model('cars').collection.insert(JSON.parse(cars));
      res.end();
    });
});


router.get('/commutes',function(req,res,next){
    fs.readFile('./data/Commute.json',function(err,commute){
        mongoose.model('commutes').collection.insert(JSON.parse(commute));
        res.end();
    });
});

module.exports = router;
