Skip to content

Commit b010bb9

Browse files
committed
docs: update h3 usage example
1 parent a9fd24f commit b010bb9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,7 @@ import { createProxyMiddleware } from 'nuxt-proxy/middleware'
4242

4343
const app = createApp()
4444

45-
app.use(createProxyMiddleware({
46-
target: 'https://jsonplaceholder.typicode.com',
47-
changeOrigin: true,
48-
pathRewrite: {
49-
'^/api/todos': '/todos',
50-
'^/api/users': '/users'
51-
},
52-
pathFilter: [
53-
'/api/todos',
54-
'/api/users'
55-
]
56-
}))
45+
app.use(createProxyMiddleware({}))
5746
```
5847

5948
## License

0 commit comments

Comments
 (0)