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
Hide 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
const
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
app
=
require
(
'./server'
);
fs
.
readdirSync
(
path
.
resolve
(
__dirname
,
'routes'
)).
forEach
((
name
)
=>
{
require
(
path
.
resolve
(
__dirname
,
'routes'
,
name
));
});
\ No newline at end of file
Please
register
or
login
to post a comment