Update server.js
Browse files
server.js
CHANGED
|
@@ -8,7 +8,7 @@ const app = express();
|
|
| 8 |
const port = 7860;
|
| 9 |
|
| 10 |
app.use("/file", express.static(os.tmpdir()));
|
| 11 |
-
app.use("/", express.static('index.html'));
|
| 12 |
|
| 13 |
const storage = multer.diskStorage({
|
| 14 |
destination: (req, file, cb) => cb(null, os.tmpdir()),
|
|
|
|
| 8 |
const port = 7860;
|
| 9 |
|
| 10 |
app.use("/file", express.static(os.tmpdir()));
|
| 11 |
+
app.use("/", express.static(path.join(process.cwd(), 'index.html')));
|
| 12 |
|
| 13 |
const storage = multer.diskStorage({
|
| 14 |
destination: (req, file, cb) => cb(null, os.tmpdir()),
|