-
-
Save reaganmcf/1e2e5f4ccb1a0bd237d21aeda96dd14a to your computer and use it in GitHub Desktop.
Initial API Contents
This file contains 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
//import Comsic JS Library | |
const Cosmic = require('cosmicjs'); | |
//import our local Config | |
const config = require('./config'); | |
//Fetch our Chore bucket | |
const choreBucket = Cosmic.bucket({ | |
slug: config.BUCKET_SLUG, | |
read: config.API_READ_ACCESS_KEY, | |
write: config.API_WRITE_ACCESS_KEY | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment