Custom blueprint hook to get associations
npm install sails-hook-blueprint-associations --save
GET /:model/associations
Ex request
'GET /user/associations'
Ex response
{
"associations": [
{
"alias": "endpoints",
"type": "collection",
"collection": "endpoint",
"via": "users"
},
{
"alias": "clients",
"type": "collection",
"collection": "client",
"via": "user"
}
]
}