Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박정인
/
opensource
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박정인
2017-12-05 22:34:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d397575d04f8b92f6a50adab3073111f8bb7957
9d397575
1 parent
cb058590
mainserver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
app.js
app.js
0 → 100644
View file @
9d39757
const
express
=
require
(
'express'
);
const
path
=
require
(
'path'
);
const
app
=
express
();
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
'html'
)));
app
.
use
((
req
,
res
,
next
)
=>
{
console
.
log
(
'안녕!'
);
next
();
});
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
res
.
sendFile
(
path
.
join
(
__dirname
,
'html'
,
'main.html'
));
});
app
.
get
(
'/about'
,
(
req
,
res
)
=>
{
res
.
sendFile
(
path
.
join
(
__dirname
,
'html'
,
'about.html'
));
});
app
.
listen
(
8080
,
()
=>
{
console
.
log
(
'Express App on port 8080!'
);
});
Please
register
or
login
to post a comment