0.2.1 • Published 9 years ago
wejsv2old-plugin-attribute v0.2.1
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 alberto.souza.dev@gmail.com and contributors , under the MIT license.
0.2.1
9 years ago