Skip to content

Commit ca72c14

Browse files
committed
index.js: use ../static for static dir
1 parent a63cf65 commit ca72c14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path';
12
import express from 'express';
23
import bodyParser from 'body-parser';
34
import cors from 'cors';
@@ -12,7 +13,7 @@ import signup from './signup';
1213
const app = express();
1314

1415
app.use(cors());
15-
app.use(express.static(`${__dirname}/static`));
16+
app.use(express.static(path.join(__dirname, '../static')));
1617
app.use(bodyParser.json());
1718
app.use(bodyParser.urlencoded({ extended: false }));
1819

0 commit comments

Comments
 (0)