Skip to content

Commit

Permalink
Merge pull request #960 from yangsimin/yangsimin/patch-88531
Browse files Browse the repository at this point in the history
fix(docs): update usage.md
  • Loading branch information
pmcelhaney authored Jun 27, 2024
2 parents c94bcdb + 9bd5aff commit b118d03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const GET: HTTP_GET = ($) => {
return $.response[401].text('unauthorized');
}
const content = `TODO: output the results for "${query.keyword}"`
const content = `TODO: output the results for "${$.query.keyword}"`
+ `in ${$.path.groupName}`
+ `that have the following tags: ${$.body.tags.join(',')}.`.
Expand Down Expand Up @@ -163,9 +163,9 @@ export const POST: HTTP_POST = ($) => {
```ts copy
// pet/{id}.ts
export const GET: HTTP_GET ($) => {
const pet = $.context.getPetById(body);
if (pet === undefined) return response[404].text(`Pet ${$.path.id} not found.`);
return response.json(context.getPetById($.body));
const pet = $.context.getPetById($.path.id);
if (pet === undefined) return $.response[404].text(`Pet ${$.path.id} not found.`);
return $.response.json(pet);
};
```

Expand Down

0 comments on commit b118d03

Please sign in to comment.