@@ -54,20 +54,20 @@ Below is an example using the Oak server framework. To get started, import Dashp
54
54
55
55
``` typescript
56
56
// 'server.ts' file
57
- import {DashportOak }from ' https://deno.land/x/dashport/mod.ts' ;
57
+ import {DashportOak }from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
58
58
```
59
59
60
60
In the future, additional Dashports can be imported from the same mod.ts file. For example if Express was supported in Deno:
61
61
62
62
``` typescript
63
- import {DashportExpress }from ' https://deno.land/x/dashport/mod.ts' ;
63
+ import {DashportExpress }from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
64
64
```
65
65
66
66
After importing Dashport, import Application from Oak and instantiate it.
67
67
68
68
``` typescript
69
69
// 'server.ts' file
70
- import DashportOak from ' https://deno.land/x/dashport/mod.ts' ;
70
+ import { DashportOak } from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
71
71
import {Application }from " https://deno.land/x/oak/mod.ts" ;
72
72
73
73
const app= new Application ();
@@ -77,7 +77,7 @@ Then instantiate Dashport and pass in the Application instance. This is needed i
77
77
78
78
``` typescript
79
79
// 'server.ts' file
80
- import DashportOak from ' https://deno.land/x/dashport/mod.ts' ;
80
+ import { DashportOak } from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
81
81
import {Application }from " https://deno.land/x/oak/mod.ts" ;
82
82
83
83
const app= new Application ();
@@ -87,7 +87,7 @@ const dashport = new DashportOak(app);
87
87
Routes can then be added as needed
88
88
89
89
``` typescript
90
- import DashportOak from ' https://deno.land/x/dashport/mod.ts' ;
90
+ import { DashportOak } from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
91
91
import {Application ,Router }from ' https://deno.land/x/oak/mod.ts' ;
92
92
93
93
const app= new Application ();
@@ -269,7 +269,7 @@ const deserializerA = async (serializedId: (string | number)) => {
269
269
270
270
``` typescript
271
271
// Oak example
272
- import DashportOak from ' https://deno.land/x/dashport/mod.ts' ;
272
+ import { DashportOak } from ' https://deno.land/x/dashport@v1.2.1 /mod.ts' ;
273
273
import {Application ,Router }from ' https://deno.land/x/oak/mod.ts' ;
274
274
import {ghStrat ,serializerB ,deserializerB }from ' ./dashportConfig.ts' ;
275
275