wekan/packages/wekan-cfs-access-point
2021-04-29 13:26:49 +03:00
..
tests Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
.travis.yml Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
access-point-client.js Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
access-point-common.js Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
access-point-handlers.js Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
access-point-server.js Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
api.md Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
CHANGELOG.md Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
internal.api.md Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
LICENSE.md Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
package.js Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00
README.md Fixed Non-ASCII attachment filename will crash when downloading. 2021-04-29 13:26:49 +03:00

wekan-cfs-access-point Build Status

This is a Meteor package used by CollectionFS.

You don't need to manually add this package to your app. It is added when you add the wekan-cfs-standard-packages 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:

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