webAhead1 / e-store

0 stars 2 forks source link

cart.js file shouldn't be in the public folder #7

Open Karyum opened 2 years ago

Karyum commented 2 years ago

https://github.com/webAhead1/e-store/blob/master/server.js#L12 https://github.com/webAhead1/e-store/blob/master/public/cart/cart.js

cart.js it's not a public file (a public file is a file which would be sent to the user's browser, the entire file) it's backend only file. same goes to the database folder and products.js you should move it to the root folder of the project