import {
store as apiStore,
refine,
getStorage,
api
} from 'kekto'
const storage = getStorage()
apiStore('unicorn', {
baseUrl: 'http://localhost:3000/api/v1',
post: 'add/unicorn',
get: 'unicorn',
endpoint: '/unicorn',
accept: 'json',
return: 'json'
})
refine('unicorn', {
baseUrl: 'http://localhost:3000/api',
endpoint: '/justcorn',
accept: 'json',
return: 'json'
})
console.log(storage)
api
.GET('unicorn')
.then(result => {
console.log(result)
})