UNPKG

generator-sails-rest-api

Version:

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

11 lines (7 loc) 207 B
"use strict"; const _ = require('lodash'); const actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); module.exports = (req, res) => { const Model = actionUtil.parseModel(req); res.ok(); };