Skip to content

Commit

Permalink
Changes endpoints.mdx (withastro#3950)
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlxh authored Aug 7, 2023
1 parent a3f3746 commit f4a736e
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 function get ({params, request}) {
export const get: APIRoute = async () => ({ params, request }) {
...
```
Expand Down

0 comments on commit f4a736e

Please sign in to comment.