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-03 18:32:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2a52bf2b6addbdb350e0df97615a0da453cac3e
c2a52bf2
1 parent
b44595de
메인 js에서 routes 폴더 안의 파일들을 require
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/main.js
src/main.js
0 → 100644
View file @
c2a52bf
1
+
const
fs
=
require
(
'fs'
);
2
+
const
path
=
require
(
'path'
);
3
+
const
app
=
require
(
'./server'
);
4
+
5
+
fs
.
readdirSync
(
path
.
resolve
(
__dirname
,
'routes'
)).
forEach
((
name
)
=>
{
6
+
require
(
path
.
resolve
(
__dirname
,
'routes'
,
name
));
7
+
});
...
\ No newline at end of file
...
\ No newline at end of file
Please
register
or
login
to post a comment