Skip to content

Commit

Permalink
fix: APIRoute example (withastro#4172)
Browse files Browse the repository at this point in the history
Co-authored-by: Ross Bratton <[email protected]>
Co-authored-by: Elian ☕️ <[email protected]>
  • Loading branch information
3 people authored Aug 11, 2023
1 parent f1999a3 commit e939727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/core-concepts/endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also type your endpoint functions using the `APIRoute` type:
```ts
import type { APIRoute } from 'astro';

export const get: APIRoute = async () => ({ params, request }) {
export const get: APIRoute = async ({ params, request }) => {
...
```
Expand Down

0 comments on commit e939727

Please sign in to comment.