in router.js
else
{
handlers.publicHandler(request,response);
}
i think the code should be like this:
else if(endpoint.includes('/public/')){
handlers.publichandler(request, response);
}
else {
response.writeHead(404, {'Content-Type': 'text/html'})
response.end('
Page Not Found
')
}
in router.js
else
{
handlers.publicHandler(request,response);
}
i think the code should be like this:
else if(endpoint.includes('/public/')){
handlers.publichandler(request, response);
}
else {
response.writeHead(404, {'Content-Type': 'text/html'})
response.end('
Page Not Found
')}