Overal improvement

This commit is contained in:
Corentin Risselin 2020-01-07 15:53:25 +09:00
commit 7125e35103
15 changed files with 199 additions and 86 deletions

View file

@ -17,7 +17,7 @@ const server = http.createServer((request, response) => {
const mimeEncoding = {
'.gz': 'gzip',
};
let pathname = '.' + url.parse(request.url).pathname;
let pathname = 'public' + url.parse(request.url).pathname;
fs.exists(pathname, function (exist) {
if(!exist)
{