stefanbuck / sails-social-auth-example

Sails.js Social Auth example with Passport and MongoDB
243 stars 62 forks source link

how can i enable sail's default CRUD operations? #9

Closed blavie closed 10 years ago

blavie commented 10 years ago

first of all, thanks for this great package! you really gave me a kick-start - much appreciated.

second, when i try to access http://localhost:1337/user/, or http://localhost:1337/user/find?gender=male i get an The page you were trying to reach doesn't exist. error...

i tried fixing the policies to accept 'user' : true, for testing purposes, and when trying to lift the sails i get -

'user' : true,
^^^^^^
SyntaxError: Unexpected string

in the console. any idea how can overcome this, and enable them? i really hope you could help me figure this out, i am trying to wrap my head around this and could use some help... and again - thanks a lot again for this great repo, you sure did helped me out already!...

blavie commented 10 years ago

self solved, i just needed to add a controller for the user model. thanks a lot again!