We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63cf65 commit ca72c14Copy full SHA for ca72c14
src/index.js
@@ -1,3 +1,4 @@
1
+import path from 'path';
2
import express from 'express';
3
import bodyParser from 'body-parser';
4
import cors from 'cors';
@@ -12,7 +13,7 @@ import signup from './signup';
12
13
const app = express();
14
15
app.use(cors());
-app.use(express.static(`${__dirname}/static`));
16
+app.use(express.static(path.join(__dirname, '../static')));
17
app.use(bodyParser.json());
18
app.use(bodyParser.urlencoded({ extended: false }));
19
0 commit comments