Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
529b9eda
Commit
529b9eda
authored
Feb 06, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
69e71289
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
serverConfig.xml
serverConfig.xml
+3
-1
router.ts
src/routers/router.ts
+4
-1
No files found.
serverConfig.xml
View file @
529b9eda
<config>
<config>
<port>
30001
</port>
<port>
30001
</port>
<mongodb>
mongodb://192.168.12.79:27017/adminDB?w=1
&
wtimeoutMS=30000
</mongodb>
<!-- <mongodb>mongodb://192.168.12.79:27017/adminDB?w=1&wtimeoutMS=30000</mongodb> -->
<mongodb>
mongodb://127.0.0.1:27017/adminDB
</mongodb>
</config>
</config>
\ No newline at end of file
src/routers/router.ts
View file @
529b9eda
...
@@ -2,9 +2,11 @@
...
@@ -2,9 +2,11 @@
import
*
as
asyncHandler
from
'express-async-handler'
import
*
as
asyncHandler
from
'express-async-handler'
import
*
as
adminRouters
from
'./admin'
import
*
as
adminRouters
from
'./admin'
import
*
as
fuhuaqiRouters
from
'./fuhuaqi'
export
function
setRouter
(
httpServer
){
export
function
setRouter
(
httpServer
){
//新版本
//新版本
adminRouters
.
setRouter
(
httpServer
);
adminRouters
.
setRouter
(
httpServer
);
admin
Routers
.
setRouter
(
httpServer
);
fuhuaqi
Routers
.
setRouter
(
httpServer
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment