Merge branch 'gomix' into feat/cleanup-glitch-assets-and-add-files

This commit is contained in:
Shaun Hamilton 2020-11-02 20:06:05 +00:00 committed by GitHub
commit 89f260d8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,10 +8,7 @@ const port = process.env.PORT || 3000;
app.use(cors()); app.use(cors());
/* This project needs to parse POST bodies */ app.use('/public', express.static(`${process.cwd()}/public`));
// You should mount body-parser here
app.use('/public', express.static(process.cwd() + '/public'));
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.sendFile(process.cwd() + '/views/index.html'); res.sendFile(process.cwd() + '/views/index.html');