Blame view

imports/api/documents/server/publications.js 276 Bytes
cac7cbc73   tmcdeveloper   4.1.0 release
1
  import { Meteor } from 'meteor/meteor';
c42d4eeac   themeteorchef   handful of changes
2
3
  import { check } from 'meteor/check';
  import Documents from '../documents';
d1f05315d   tmcdeveloper   wip adding API an...
4

c42d4eeac   themeteorchef   handful of changes
5
6
7
8
9
10
  Meteor.publish('documents.list', () => Documents.find());
  
  Meteor.publish('documents.view', (_id) => {
    check(_id, String);
    return Documents.find(_id);
  });