about summary refs log tree commit diff
path: root/src/state/index.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-22 19:28:25 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-22 19:28:25 -0500
commitaabde2b401e725090232f203f23152ee1d50d566 (patch)
tree6c1da614bf7f1ce78b00dde5846338d42fc29012 /src/state/index.ts
parent5193a5b48e66db37e6a27ebcec13b6312ae08799 (diff)
downloadvoidsky-aabde2b401e725090232f203f23152ee1d50d566.tar.zst
Replace mock-api with real api
Diffstat (limited to 'src/state/index.ts')
-rw-r--r--src/state/index.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/state/index.ts b/src/state/index.ts
index 0749a6cca..25787ea36 100644
--- a/src/state/index.ts
+++ b/src/state/index.ts
@@ -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 {