If I have an nodejs express application with folowing folder structure:
-src
- client
- public
- css
- js
- ...
- views
- server
- server.js
above
the index.js root location?app.use(express.static();
look like?
----UPDATE---
SOLVED this by using: app.use(express.static(path.join(__dirname, '/../client/public')));
Actually solved my problem by using:
app.use(express.static(path.join(__dirname, '/../client/public')));