File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,16 @@ let router = Router::new()
67
67
68
68
router
69
69
. as_codegen ()
70
- . write_type (" ./bindings" , TypeScript :: new ());
70
+ . write_type (" ./bindings.ts " , TypeScript :: new ());
71
71
```
72
72
73
73
3 . Attach the Qubit router to an Axum router, and start it
74
74
75
75
``` rs
76
76
// Create a service and handle
77
77
let (qubit_service , qubit_handle ) = router
78
- . as_rpc ()
79
- . into_service (() );
78
+ . as_rpc (() )
79
+ . into_service ();
80
80
81
81
// Nest into an Axum router
82
82
let axum_router = axum :: Router :: <()>:: new ()
@@ -100,7 +100,7 @@ qubit_handle.stop().unwrap();
100
100
``` ts
101
101
// Import transport from client, and generated server type
102
102
import { build_client , http } from " @qubit-rs/client" ;
103
- import type { QubitServer } from " ./bindings" ;
103
+ import type { QubitServer } from " ./bindings.ts " ;
104
104
105
105
// Connect with the API
106
106
const api = build_client <QubitServer >(http (" http://localhost:9944/rpc" ));
You can’t perform that action at this time.
0 commit comments