You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
328 B
JavaScript
21 lines
328 B
JavaScript
12 months ago
|
const http = require('http');
|
||
|
|
||
|
const directory = [{
|
||
|
"name":"Dustin",
|
||
|
"email":"dustin@gmail.com"
|
||
|
},
|
||
|
|
||
|
|
||
|
{
|
||
|
"name":"Dustin",
|
||
|
"email":"dustin@gmail.com"
|
||
|
}];
|
||
|
|
||
|
http.createServer(function(request,response){
|
||
|
|
||
|
if(request.url == "/users" && request.method == "GET"){
|
||
|
|
||
|
}
|
||
|
|
||
|
}).listen(4000);
|
||
|
console.log("Server running at localhost:4000")
|