1
0

Update README.md

This commit is contained in:
Toby
2022-11-24 15:50:10 +01:00
committed by Tobias Schneider
parent e8212b5fa8
commit 3374b92075

View File

@@ -188,8 +188,7 @@ npm i -D @tsndr/cloudflare-worker-router
and replace your `index.ts` / `index.js` with one of the following scripts and replace your `index.ts` / `index.js` with one of the following scripts
<details> ### TypeScript (<code>src/index.ts</code>)
<summary>TypeScript (<code>src/index.ts</code>)</summary>
```typescript ```typescript
import { Router } from '@tsndr/cloudflare-worker-router' import { Router } from '@tsndr/cloudflare-worker-router'
@@ -215,10 +214,8 @@ export default {
} }
} }
``` ```
</details>
<details> ### JavaScript (<code>src/index.js</code>)
<summary>JavaScript (<code>src/index.js</code>)</summary>
```javascript ```javascript
import { Router } from '@tsndr/cloudflare-worker-router' import { Router } from '@tsndr/cloudflare-worker-router'
@@ -233,4 +230,3 @@ export default {
} }
} }
``` ```
</details>