filefive 2.0.0 → 2.0.1
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/dist/index.js +2 -2
- package/dist/public/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
const express_1 = __importDefault(require("express"));
|
|
8
8
|
const multer_1 = __importDefault(require("multer"));
|
|
9
9
|
const posix_1 = require("node:path/posix");
|
|
10
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
10
11
|
const node_os_1 = require("node:os");
|
|
11
12
|
const Local_1 = require("./Local");
|
|
12
13
|
const App_1 = __importDefault(require("./App"));
|
|
@@ -35,8 +36,7 @@ app.use(function (req, res, next) {
|
|
|
35
36
|
next();
|
|
36
37
|
});
|
|
37
38
|
app.use(express_1.default.json());
|
|
38
|
-
app.use(express_1.default.static(
|
|
39
|
-
app.use(express_1.default.static((0, posix_1.resolve)(__dirname, '../dist/public')));
|
|
39
|
+
app.use(express_1.default.static(node_path_1.default.resolve(__dirname, 'public')));
|
|
40
40
|
const server = app.listen(port, async () => {
|
|
41
41
|
console.log(`FileFive is up on http://localhost:${port}`);
|
|
42
42
|
if (process.env.NODE_ENV !== 'development') {
|