var express = require('express');
var router = express.Router();
var mainController = new (require('../controllers/Main'))();

/* GET main page. */
router.get('/', mainController.run);

module.exports = router;

var express = require('express');
var router = express.Router();
var mainController = require('../controllers/Main')();


/* GET main page. */
router.get('/', mainController.run);

module.exports = router;

Update index.js