Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanis2000/meteor-cfs-access-point
CollectionFS, add ddp and http accesspoint capability
https://github.com/tanis2000/meteor-cfs-access-point
Last synced: 4 days ago
JSON representation
CollectionFS, add ddp and http accesspoint capability
- Host: GitHub
- URL: https://github.com/tanis2000/meteor-cfs-access-point
- Owner: tanis2000
- License: mit
- Created: 2014-04-09T19:15:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-14T08:41:03.000Z (over 10 years ago)
- Last Synced: 2023-03-11T05:44:46.135Z (over 1 year ago)
- Language: JavaScript
- Size: 272 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
cfs-access-point [![Build Status](https://travis-ci.org/CollectionFS/Meteor-cfs-access-point.png?branch=master)](https://travis-ci.org/CollectionFS/Meteor-cfs-access-point)
=========================This is a Meteor package used by
[CollectionFS](https://github.com/CollectionFS/Meteor-CollectionFS).You don't need to manually add this package to your app. It is added when you
add the `collectionFS` package. You could potentially use your own access point
package instead.## Define a URL for Collection Listing
To define a URL that accepts GET requests and returns a list of published
files in a FS.Collection:```js
Images = new FS.Collection("images", {
stores: [myStore]
});FS.HTTP.publish(Images, function () {
// `this` provides a context similar to Meteor.publish
return Images.find();
});
```The URL will be '/cfs/record/images', where the `cfs` piece is configurable
using the `FS.HTTP.setBaseUrl` method.## API Documentation
[Here](api.md)