SolidCreek/yokel — pull request #42 by Zithrill (2014-09-07 22:44:13+00:00)
Title: Finished Linking places to api and database along with real data

There is some issue with the redirect after login from /auth/facebook that need to be addressed.
There is an issue with Auth.js on the client side that is blocking links from being pressed and redirecting to /signin Auth.js should be reworked to recognize the servers authentication token from passport but only restrict non-logged in users from accessing the user page not business pages or home page.

the api calls for api/nearby should include the latitude and longitude of the user to get nearby locations in the following format:

$http({
method: 'GET',
url: 'api/nearby/latitude/longitude'
})

a similar format is needed for retrieving business data where the unique google places id of the business must be included in the url of the request as such:
$http({
method: 'GET',
url: 'api/businesses/businessId'
})