Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chinguyen_nodejs_managestudents
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
1
Merge Requests
1
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
chinguyen
chinguyen_nodejs_managestudents
Commits
bbc7ddb8
Commit
bbc7ddb8
authored
Mar 14, 2022
by
cicd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tag]dev
parent
384ea75e
Pipeline
#13705
passed with stages
in 2 minutes and 2 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.js
index.js
+11
-2
No files found.
index.js
View file @
bbc7ddb8
var
express
=
require
(
'express'
);
var
app
=
express
();
var
fs
=
require
(
"fs"
)
app
.
get
(
'/'
,
function
(
req
,
res
)
{
res
.
send
(
'Hello World, changed'
);
console
.
log
(
new
Date
())
data
=
"content of file"
fs
.
readFile
(
'code.html'
,
{
flag
:
'wx'
},
function
(
err
,
data
)
{
if
(
err
)
throw
err
;
// in ra nội dung đọc được
res
.
write
(
data
);
//kết thúc response
res
.
end
();
});
})
var
server
=
app
.
listen
(
8081
,
function
()
{
...
...
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