adon-api
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -25,3 +25,3 @@ "use strict"; | ||
const RouteManager_1 = __importDefault(require("./RouteManager")); | ||
const PUBLIC_PATH = '../../public'; | ||
const PUBLIC_PATH = '/public'; | ||
class ExpressApp { | ||
@@ -58,3 +58,3 @@ get isReady() { | ||
this.log.debug(config_1.default); | ||
const publicPath = path_1.default.join(__dirname, PUBLIC_PATH); | ||
const publicPath = path_1.default.join(this.rootDir, PUBLIC_PATH); | ||
this.log.info(`Setting public path in ${publicPath}`); | ||
@@ -61,0 +61,0 @@ this._app.use(express_1.default.static(publicPath)); |
{ | ||
"name": "adon-api", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "API for all Adon-based projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
33961