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

Fix

parent 14067c2e
No related branches found
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