Commit bbc7ddb8 authored by cicd's avatar cicd

[tag]dev

parent 384ea75e
Pipeline #13705 passed with stages
in 2 minutes and 2 seconds
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())
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 () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment