From 23653667dbf30cb3541e22d5a424ffda4e2fefa7 Mon Sep 17 00:00:00 2001 From: Ronald Rey Date: Fri, 22 Nov 2024 20:32:35 -0400 Subject: [PATCH 1/2] 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", }); } From c03f3adab68ef832c3d968e22893be18a5344243 Mon Sep 17 00:00:00 2001 From: "remix-cla-bot[bot]" <92060565+remix-cla-bot[bot]@users.noreply.github.com> Date: Sat, 23 Nov 2024 00:32:38 +0000 Subject: [PATCH 2/2] chore: sort contributors list --- contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index 8550bb83ac..efab316d9e 100644 --- a/contributors.yml +++ b/contributors.yml @@ -224,6 +224,7 @@ - promet99 - pyitphyoaung - refusado +- reyronald - rifaidev - rimian - robbtraister @@ -303,4 +304,3 @@ - yuleicul - zeromask1337 - zheng-chuang -- reyronald