Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정승우
/
YaguMoa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
SW0000J
2020-06-15 16:55:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78949a0dc8bfbc2f881c6ad2d1b15691a82b30fc
78949a0d
1 parent
071f9614
main page의 router
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
testcode/routes/index.js
testcode/routes/index.js
0 → 100644
View file @
78949a0
var
express
=
require
(
'express'
);
var
router
=
express
.
Router
();
const
Xports
=
require
(
'../test1.js'
);
const
Zum
=
require
(
'../test2.js'
);
const
Chosun
=
require
(
'../test3.js'
);
const
Yna
=
require
(
'../test4.js'
);
const
xports
=
Xports
.
xports
;
const
zum
=
Zum
.
zum
;
const
chosun
=
Chosun
.
chosun
;
const
yna
=
Yna
.
yna
;
router
.
get
(
'/'
,
function
(
req
,
res
,
next
){
res
.
render
(
'index'
,
{
xports
:
xports
,
zum
:
zum
,
chosun
:
chosun
,
yna
:
yna
});
});
for
(
var
i
in
xports
){
console
.
log
(
i
.
datetime
);
}
module
.
exports
=
router
;
\ No newline at end of file
Please
register
or
login
to post a comment