Toggle navigation
Toggle navigation
This project
Loading...
Sign in
허재욱
/
ComNetPrj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
WhiteDog
2017-11-08 19:43:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
288200df78532b20fe11e33d53768f299005b9c5
288200df
1 parent
6fb017d9
Is deleting???
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
helloWorld.js
test.txt
helloWorld.js
deleted
100644 → 0
View file @
6fb017d
var
http
=
require
(
'http'
);
http
.
createServer
(
function
(
req
,
res
)
{
var
path
=
req
.
url
.
replace
(
/
\/?(?:\?
.*
)?
$/
,
''
).
toLowerCase
();
switch
(
path
)
{
case
''
:
res
.
writeHead
(
200
,
{
'Content-Type'
:
'text/plain'
});
res
.
end
(
'Homepage'
);
break
;
case
'/about'
:
res
.
writeHead
(
200
,
{
'Content-Type'
:
'text/plain'
});
res
.
end
(
'About'
);
default
:
res
.
writeHead
(
404
,
{
'Content-Type'
:
'text/plain'
});
res
.
end
(
'Not Found'
);
break
;
}
}).
listen
(
3000
);
console
.
log
(
'Server started on localhost:3000; press Ctrl-C to terminate....'
);
\ No newline at end of file
test.txt
deleted
100644 → 0
View file @
6fb017d
File mode changed
Please
register
or
login
to post a comment