UNPKG

generator-sails-rest-api

Version:

Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features

10 lines (8 loc) 251 B
/** * Populate an association * GET /:model/:parentId/:relation * GET /:model/:parentId/:relation/:id * * Expand response with populated data from relations in models. */ module.exports = require('sails/lib/hooks/blueprints/actions/populate');