Reputation: 3511
I have the following line in app.Configure:
app.use(express.static(__dirname + '/public'));
The directory structure is:
/public/scripts/
however, only 1 script is served while the rest are not.
This is what I have in jade template:
script(src='/scripts/login.js', type='text/javascript')
script(src='/scripts/menu.js', type='text/javascript')
script(src='/scripts/json.js', type='text/javascript')
login is being served, menu and json are both 404.
How do i fix this?
Upvotes: 0
Views: 412