var pathname = url.parse(_url, true).pathname; //pathname을 url주소와 연결
if(pathname === '/'){ //pathname안에 검색한 주소가 있다면
response.writeHead(200);
response.end(template);
}
else { //pathname안에 검색한 주소가 없다면
response.writeHead(404);
response.end('Not found');
}
당신의 시간이 헛되지 않는 글이 되겠습니다.
I'll write something that won't waste your time.