Blame view
imports/api/documents/server/publications.js
276 Bytes
cac7cbc73
|
1 |
import { Meteor } from 'meteor/meteor'; |
c42d4eeac
|
2 3 |
import { check } from 'meteor/check'; import Documents from '../documents'; |
d1f05315d
|
4 |
|
c42d4eeac
|
5 6 7 8 9 10 |
Meteor.publish('documents.list', () => Documents.find()); Meteor.publish('documents.view', (_id) => { check(_id, String); return Documents.find(_id); }); |