明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
jt_backend
Commits
b368dd38
Commit
b368dd38
authored
May 25, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
81e4bce3
Pipeline
#111870
passed with stage
in 4 seconds
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
23 deletions
+24
-23
projectController.js
controller/projectController.js
+20
-19
request.js
middleware/request.js
+1
-1
server.js
server.js
+3
-3
No files found.
controller/projectController.js
View file @
b368dd38
This diff is collapsed.
Click to expand it.
middleware/request.js
View file @
b368dd38
...
...
@@ -30,7 +30,7 @@ module.exports = async (req, res, next) => {
}
/* --------------3. 记录所有进来的日志,是否记录响应的值有待 */
if
(
!
[
'/resource/listResourceAll'
].
includes
(
req
.
path
))
{
if
(
!
[
'/resource/listResourceAll'
,
'/project/saveJuece'
].
includes
(
req
.
path
))
{
requestLogModule
.
createRequestLog
({
url
:
req
.
baseUrl
+
req
.
path
,
params
:
JSON
.
stringify
({
...
...
server.js
View file @
b368dd38
...
...
@@ -34,8 +34,8 @@ app.all('*', function (req, res, next) {
app
.
use
(
compress
());
app
.
use
(
express
.
json
());
app
.
use
(
express
.
urlencoded
({
extended
:
false
}));
app
.
use
(
express
.
json
(
{
limit
:
'500mb'
}
));
app
.
use
(
express
.
urlencoded
({
extended
:
false
,
limit
:
'500mb'
}));
app
.
use
(
express
.
static
(
'public'
));
app
.
use
(
logger
(
'dev'
));
...
...
@@ -72,6 +72,6 @@ app.use(function (err, req, res, next) {
const
server
=
require
(
'http'
).
createServer
(
app
);
server
.
listen
(
process
.
env
.
PORT
||
300
0
,
function
()
{
server
.
listen
(
process
.
env
.
PORT
||
300
1
,
function
()
{
console
.
log
(
`****** server is listening :
${
process
.
env
.
PORT
}
|| 3000`
);
});
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