Skip to content

Commit

Permalink
docs: fix resource-routes json example (#12354)
Browse files Browse the repository at this point in the history
* docs: fix resource-routes json example

* docs: add reyronald to contributors.yml

* ws
  • Loading branch information
reyronald authored Nov 23, 2024
1 parent ae79fce commit 2365366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,4 @@
- yuleicul
- zeromask1337
- zheng-chuang
- reyronald
4 changes: 2 additions & 2 deletions docs/how-to/resource-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ GET requests are handled by the `loader`, while POST, PUT, PATCH, and DELETE are
import type { Route } from "./+types/resource";

export function loader(_: Route.LoaderArgs) {
return new Response.json({ message: "I handle GET" });
return Response.json({ message: "I handle GET" });
}

export function action(_: Route.LoaderArgs) {
return new Response.json({
return Response.json({
message: "I handle everything else",
});
}
Expand Down

0 comments on commit 2365366

Please sign in to comment.