Last active
March 2, 2017 15:22
-
-
Save dmfenton/93379d71f4412716b3e508e1c8612cfa to your computer and use it in GitHub Desktop.
Example Koop Index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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