kalisio/kApp

View on GitHub
src/services/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import logger from 'loglevel'
import kdkCore from '@kalisio/kdk/core.client'
import CustomService from './custom.service'

export default async function () {
  const api = this

  // Set up our plugin services
  try {
    await api.configure(kdkCore)
    api.createService('custom', { service: CustomService })
  } catch (error) {
    logger.error(error.message)
  }
}