Move all static files to public/ folder and fix paths

This commit is contained in:
2016-12-28 00:50:58 -08:00
parent 83161dc7e0
commit 0ba89c8d9c
18 changed files with 18 additions and 18 deletions
+2 -3
View File
@@ -9,10 +9,9 @@ const port = 3000;
app.use(bodyParser.urlencoded({ extended: false }));
app.use('/static', express.static(path.join(__dirname, 'dist')));
app.use('/assets', express.static(path.join(__dirname, 'assets')));
app.use('/', express.static(path.join(__dirname, 'public')));
app.get('/*', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
res.sendFile(path.join(__dirname, 'public/index.html'));
});
app.post('*', (req, res) => {