Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* # Kasia Setup
*/
import { default as _WP } from 'wpapi'
import Kasia from 'kasia'
import KasiaWpMenusPlugin from 'kasia-plugin-wp-api-menus'
import config from '../config'
export const WP = new _WP({ endpoint: config.wpapi })
const { kasiaSagas, kasiaReducer } = Kasia({
WP,
plugins: [KasiaWpMenusPlugin],
contentTypes: [{
name: 'Reports',
plural: 'reports',
slug: 'reports'
}]
})
export {
kasiaSagas as wpSagas,
kasiaReducer as wpReducer
}