{"size": 434, "ext": "js", "max_stars_repo_path": "server/routes/index.js", "max_stars_repo_name": "lightertu/IoTVisualization", "max_stars_repo_stars_event_min_datetime": "2017-11-01T02:53:30.000Z", "max_stars_repo_stars_event_max_datetime": "2017-11-01T02:53:30.000Z", "max_issues_repo_path": "server/routes/index.js", "max_issues_repo_name": "lightertu/IoTVisualization", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/routes/index.js", "max_forks_repo_name": "lightertu/IoTVisualization", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.5294117647, "max_line_length": 82, "alphanum_fraction": 0.6359447005}
/**
 * Created by rui on 10/31/17.
 */
const express = require('express')
    , router = express.Router()
    , sendError = require('./utils').sendError
    , HttpStatus = require('http-status-codes');

router.use('/IoTGraph', require('./IotGraph'));

router.use(function(req, res, next) {
    if (!req.route)
        return sendError(res, HttpStatus.NOT_FOUND, "You are at the wrong page!");
    next();
});

module.exports = router;