Toggle navigation
Toggle navigation
This project
Loading...
Sign in
201side
/
floater
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
robin*
2020-12-09 12:14:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
95b6625f00d2070a46b545256070b986c6c4d740
95b6625f
1 parent
60cc2bc2
정적 파일들 서버에 추가
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/main.js
src/main.js
View file @
95b6625
const
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
express
=
require
(
'express'
);
const
app
=
require
(
'./server'
);
fs
.
readdirSync
(
path
.
resolve
(
__dirname
,
'routes'
)).
forEach
((
name
)
=>
{
require
(
path
.
resolve
(
__dirname
,
'routes'
,
name
));
});
app
.
use
(
express
.
static
(
path
.
resolve
(
__dirname
,
'public'
)));
app
.
listen
(
3429
);
...
...
Please
register
or
login
to post a comment