Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서연
/
Corona_Vaccination_Medical_Institution
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
Heo
2021-05-22 15:31:16 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f86a94b262f4a4a877941a0c6d11d0e664722ae
9f86a94b
1 parent
f6fd679d
html rendering test
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
app2.js
app2.js
0 → 100644
View file @
9f86a94
var
http
=
require
(
'http'
);
var
fs
=
require
(
'fs'
);
function
onRequest
(
req
,
res
){
res
.
writeHead
(
200
,
{
'Content-Type'
:
'text/html'
});
fs
.
readFile
(
'./map/map.html'
,
null
,
function
(
err
,
data
){
if
(
err
){
res
.
writeHead
(
404
);
res
.
write
(
'error'
);
}
else
{
console
.
log
(
'complete!'
);
res
.
write
(
data
);
}
res
.
end
();
});
}
http
.
createServer
(
onRequest
).
listen
(
3000
);
\ No newline at end of file
Please
register
or
login
to post a comment