Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Kinto from 'kinto'
let db = new Kinto({
remote: 'https://tut-search.herokuapp.com/v1/',
bucket: 'tut-search'
})
let tutorialAPI = db.collection('tutorials')
if (process.env.NODE_ENV === 'development') {
window.tutorialAPI = tutorialAPI
console.debug('Tutorial API available at `tutorialAPI`')
}
export default {
namespaced: true,
state: {
data: []
},
getters: {