Friday 24 January 2020

Noob question about public directory in express.

app.use(express.static(path.join(__dirname, "public"))); I have to use EJS for a school project and I'm having trouble getting my images to load. My stylesheets and other js scripts are also in the public folder, obviously, and they are working fine. Why the hell isn't it grabbing my images. It keeps throwing a 404.

Submitted January 25, 2020 at 12:09AM by AntipodalBurrito

No comments:

Post a Comment