SW0000J

main page의 router

1 +var express = require('express');
2 +var router = express.Router();
3 +
4 +const Xports = require('../test1.js');
5 +const Zum = require('../test2.js');
6 +const Chosun = require('../test3.js');
7 +const Yna = require('../test4.js');
8 +const xports = Xports.xports;
9 +const zum = Zum.zum;
10 +const chosun = Chosun.chosun;
11 +const yna = Yna.yna;
12 +
13 +router.get('/', function(req, res, next){
14 +
15 + res.render('index', {
16 + xports : xports,
17 + zum : zum,
18 + chosun : chosun,
19 + yna : yna
20 + });
21 +});
22 +
23 +for(var i in xports){
24 + console.log(i.datetime);
25 +}
26 +module.exports = router;
...\ No newline at end of file ...\ No newline at end of file