Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('*', function(req, res) {
- res.sendFile(path.resolve(__dirname) + '/server/static/index.html');
- });
- // routes
- const apiRoutes = require('./server/routes/api');
- app.use('/api', apiRoutes);
- // routes
- const apiRoutes = require('./server/routes/api');
- app.use('/api', apiRoutes);
- app.get('*', function(req, res) {
- res.sendFile(path.resolve(__dirname) + '/server/static/index.html');
- });
Add Comment
Please, Sign In to add comment