usefulio / api-base

Platform for creating DDP-based APIs for Meteor apps
MIT License
17 stars 0 forks source link

Convenience methods #3

Open cwohlman opened 8 years ago

cwohlman commented 8 years ago

API.userId() API.clientId() API.appId() API.collection()

ianserlin commented 8 years ago

API.collection() instead of new Mongo.Collection('XYZ', { connection: API.connection }

API.userId() and the like, possibly use DDP._CurrentInvocation or a Meteor EnvironmentVariable?