exodus-framework 2.0.57 → 2.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/express.js +1 -2
- package/package.json +1 -1
package/lib/services/express.js
CHANGED
@@ -10,7 +10,6 @@ var _cors = _interopRequireDefault(require("cors"));
|
|
10
10
|
var _express = _interopRequireDefault(require("express"));
|
11
11
|
require("express-async-errors");
|
12
12
|
var http = _interopRequireWildcard(require("http"));
|
13
|
-
var _path = _interopRequireDefault(require("path"));
|
14
13
|
var _pinoHttp = _interopRequireDefault(require("pino-http"));
|
15
14
|
var _http2 = require("../contracts/http");
|
16
15
|
var _error = require("./error");
|
@@ -29,7 +28,7 @@ class ExpressService extends _service.default {
|
|
29
28
|
logger: (0, _logger.default)()
|
30
29
|
});
|
31
30
|
this.server = http.createServer(expss);
|
32
|
-
expss.use('/public', _express.default.static(
|
31
|
+
expss.use('/public', _express.default.static(_app.Core.settings.getHttp().publicPath));
|
33
32
|
expss.use(pino);
|
34
33
|
expss.use(this.responseTypeMiddleware.bind(this));
|
35
34
|
expss.use(_express.default.json());
|