Skip to content
Snippets Groups Projects
Commit 14067c2e authored by Daniel Kovacs's avatar Daniel Kovacs
Browse files

static fix

parent b382020e
Branches
No related tags found
No related merge requests found
......@@ -10,12 +10,12 @@ const axios = require('axios');
const app = express();
const path = require('path');
app.use(express.static(path.join(__dirname, 'static')));
app.use(express.static(path.join(__dirname, 'frontend/build')));
app.get('/*', (req, res) => {
console.log(__dirname);
res.sendFile(path.join(__dirname, 'static', 'index.html'));
res.sendFile(path.join(__dirname, 'frontend/build', 'index.html'));
});
app.use(bodyParser.json());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment