Skip to content

Commit

Permalink
Removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Bakerink committed Jun 8, 2022
1 parent b95a4e0 commit 31e08cd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/controller.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
const axios = require('axios');
require('dotenv').config()
console.log(process.env)

const controller = {};

controller.getResults = (req, res, next) => {
console.log(req);

const radius = Math.round((req.body.radius || 5) * 1609.34);
const location = (req.body.location || 10109);
const categories = (req.body.categories || []);
console.log(categories);
axios({
method: 'GET',
url: 'https://api.yelp.com/v3/businesses/search',
Expand All @@ -22,8 +19,6 @@ controller.getResults = (req, res, next) => {
'categories': categories,
},
headers: {
// 'Content-Type': 'application/json',
// 'Connection' : 'keep-alive',
'Authorization' : process.env.API_KEY,
},
})
Expand Down

0 comments on commit 31e08cd

Please sign in to comment.