Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -51,7 +51,7 @@ const createServer = () => {
|
|
51 |
const server = http.createServer((req, res) => {
|
52 |
if (req.url === '/') {
|
53 |
res.writeHead(200, {'Content-Type': 'text/plain'});
|
54 |
-
res.end(
|
55 |
} else {
|
56 |
res.writeHead(404, {'Content-Type': 'text/plain'});
|
57 |
res.end('404 Not Found');
|
|
|
51 |
const server = http.createServer((req, res) => {
|
52 |
if (req.url === '/') {
|
53 |
res.writeHead(200, {'Content-Type': 'text/plain'});
|
54 |
+
res.end('It worked!');
|
55 |
} else {
|
56 |
res.writeHead(404, {'Content-Type': 'text/plain'});
|
57 |
res.end('404 Not Found');
|