From 23653667dbf30cb3541e22d5a424ffda4e2fefa7 Mon Sep 17 00:00:00 2001 From: Ronald Rey Date: Fri, 22 Nov 2024 20:32:35 -0400 Subject: [PATCH] docs: fix resource-routes json example (#12354) * docs: fix resource-routes json example * docs: add reyronald to contributors.yml * ws --- contributors.yml | 1 + docs/how-to/resource-routes.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contributors.yml b/contributors.yml index e03935e6c5..8550bb83ac 100644 --- a/contributors.yml +++ b/contributors.yml @@ -303,3 +303,4 @@ - yuleicul - zeromask1337 - zheng-chuang +- reyronald diff --git a/docs/how-to/resource-routes.md b/docs/how-to/resource-routes.md index a5480e54a8..0c98565197 100644 --- a/docs/how-to/resource-routes.md +++ b/docs/how-to/resource-routes.md @@ -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", }); }