Skip to content

Commit

Permalink
docs: remove duplicated arrows added in #23390
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Sep 27, 2023
1 parent 6fcc979 commit d34b5c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/2.guide/2.directory-structure/1.server.md
Expand Up @@ -185,29 +185,29 @@ You can also use `index.[method].ts` inside a directory for structuring your cod
**Example:**

```ts [server/api/foo/index.ts]
export default defineEventHandler((event) => => {
export default defineEventHandler((event) => {
// handle the `api/foo` endpoint
})
```

This is useful to create API namespaces.

**Example:**
**Examples:**

```ts [server/api/foo/index.get.ts]
export default defineEventHandler((event) => => {
export default defineEventHandler((event) => {
// handle GET requests for the `api/foo` endpoint
})
```

```ts [server/api/foo/index.post.ts]
export default defineEventHandler((event) => => {
export default defineEventHandler((event) => {
// handle POST requests for the `api/foo` endpoint
})
```

```ts [server/api/foo/bar.get.ts]
export default defineEventHandler((event) => => {
export default defineEventHandler((event) => {
// handle GET requests for the `api/foo/bar` endpoint
})
```
Expand Down

0 comments on commit d34b5c9

Please sign in to comment.