Skip to content

Instantly share code, notes, and snippets.

@dmfenton
Last active March 2, 2017 15:22
Show Gist options
  • Save dmfenton/93379d71f4412716b3e508e1c8612cfa to your computer and use it in GitHub Desktop.
Save dmfenton/93379d71f4412716b3e508e1c8612cfa to your computer and use it in GitHub Desktop.
Example Koop Index.js
module.exports = {
name: 'agol', // Required, the name of this provider and the start of all its URLS
type: 'provider', // Required, the type of Koop Plugin this is
version: require('./package.json').version, // Required, the version of this provider
Model: require('./agol'), // Required contains getData and other functions called by controller
hosts: true, // Optional, whether or not `getData` should receive a `host` parameter
disableIdParam: false, // Optional, whether or not `getData` should receive an `id` parameter
routes: require('./routes'), // Optional, any additional routes that should be handled by this provider
Controller: require('./controller'), // Optional, a controller to support unique routes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment