FACK1 / fid-or

0 stars 1 forks source link

Use path module #15

Open mhmdtshref opened 5 years ago

mhmdtshref commented 5 years ago

https://github.com/FACK1/fid-or/blob/237efa19fb1ea0d38b98eb9e85c9d8fe0d74fb16/src/handler.js#L7

I think it's better to use path module to write the URLs for files, so you need to use it line this:

const htmlPath = path.join(__dirname, "..", "Public", "index.html");

I mean you shouldn't type the slashes.

orjwan98 commented 5 years ago

Thank you for your feedback :)