Replace mock-api with real api
This commit is contained in:
parent
5193a5b48e
commit
aabde2b401
110 changed files with 16045 additions and 3742 deletions
|
@ -1,5 +1,5 @@
|
|||
import {autorun} from 'mobx'
|
||||
import {AdxClient, blueskywebSchemas} from '@adxp/mock-api'
|
||||
import AdxApi from '../third-party/api'
|
||||
import {RootStoreModel} from './models/root-store'
|
||||
import * as libapi from './lib/api'
|
||||
import * as storage from './lib/storage'
|
||||
|
@ -13,10 +13,7 @@ export async function setupState() {
|
|||
let rootStore: RootStoreModel
|
||||
let data: any
|
||||
|
||||
const api = new AdxClient({
|
||||
pds: 'http://localhost',
|
||||
schemas: blueskywebSchemas,
|
||||
})
|
||||
const api = AdxApi.service(`http://localhost:2583`)
|
||||
await libapi.setup(api)
|
||||
rootStore = new RootStoreModel(api)
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue