wejsv2old-plugin-attribute
v0.2.1
Published
We.js v2 attribute plugin, this plugin add the model attibute change API
Downloads
2
Keywords
Readme
We.js Attribute plugin
Add suport to update one model value and add the Model.publishAttributeUpdate() pubsub action
API:
Publish one attribute update for subscribers:
sails.models[modelName].publishAttributeUpdate(record, data, req);
Avaible URLS:
Upload one model attribute and emit one socket.io message with the verb attributeUpdated
post /api/v1/:modelName/:id/:attribute
How to install:
In we.js project:
npm install we-plugin-attribute --save
NPM Info:
Copyright and license
Copyright 2013-2014 Alberto Souza [email protected] and contributors , under the MIT license.