Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jama5262 committed Aug 29, 2019
1 parent f5a5e8e commit e840628
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/routes/route.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
const express = require('express')
const dotenv = require('dotenv');
const cors = require('cors');
const path = require('path');

const scraperHandler = require('../../app/scrapeWebPage');

dotenv.config();
const app = express()
app.use(cors())
// app.use(express.static(path.join(__dirname, '../build')));

app.get('/', (req, res) => res.send('Hello World!'))
app.get('/', (req, res) => {
// res.sendFile(path.join(__dirname, 'build', 'index.html'));
res.send('Hello World!')
})

app.post('/preview', async (req, res) => {
try {
Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"axios": "^0.19.0",
"cheerio": "^1.0.0-rc.3",
"cors": "^2.8.5",
"dotenv": "^8.0.0",
"express": "^4.17.1",
"get-urls": "^9.1.0"
Expand Down

0 comments on commit e840628

Please sign in to comment.