Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이재용
/
TFT_My_Galaxy
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
이재용
2020-06-28 17:27:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
caaab21c987d573c1fbb4a1c86bc947dcff70641
caaab21c
1 parent
585719de
추가된 폴더와 모듈화로 인한 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
TFT_My_Galaxy/app.js
TFT_My_Galaxy/app.js
View file @
caaab21
var
express
=
require
(
'express'
);
var
app
=
express
();
var
router
=
require
(
'./router/main'
)
(
app
)
;
var
router
=
require
(
'./router/main'
);
var
bodyParser
=
require
(
'body-parser'
);
app
.
set
(
'views'
,
__dirname
+
'/views'
);
app
.
set
(
'view engine'
,
'ejs'
);
app
.
engine
(
'html'
,
require
(
'ejs'
).
renderFile
);
app
.
use
(
'/'
,
router
);
var
server
=
app
.
listen
(
3000
,
function
(){
console
.
log
(
'good'
);
});
...
...
Please
register
or
login
to post a comment