File structure:
- simulated-selves
- client
- directives
- Statement
- statement.directive.html
- lib
- server
- app.js
- index.html
I have:
app.use(express.static('client'));
app.use(express.static('lib'));
My resources uploaded to index.htmlare loading properly.
<link rel='stylesheet' href='assets/app.css' />
<script src='angular.js'></script>
<script src='app.js'></script>
<script src='controllers/main.controller.js'></script>
<script src='directives/Statement/statement.directive.js'></script>
<script src='providers/statement.factory.js'></script>
But I get this error:

Why is this? statement.directive.htmlnested in the folder clientto which it applies express.static. I know that it is not invested directly under client, but not one of my other assets is loading properly. The only difference I see is using <script>/ <link/>as compared to the HTTP request. If this is a problem, I’m not sure how to get around this other than creating an endpoint for each asset, which seems very excessive.
: lib express.static? , . , , GET .
EDIT: png . client > assets > images.