From c2bfc476beb2cfa76d5acd6582668f397bdff9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Alves?= <64589027+claudioavgo@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:19:04 -0300 Subject: [PATCH] Change GET to POST for sign-in endpoint --- docs/essential/best-practice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/essential/best-practice.md b/docs/essential/best-practice.md index 35e83e9b..0f1f7f5b 100644 --- a/docs/essential/best-practice.md +++ b/docs/essential/best-practice.md @@ -60,7 +60,7 @@ import { Auth } from './service' import { AuthModel } from './model' export const auth = new Elysia({ prefix: '/auth' }) - .get( + .post( '/sign-in', async ({ body, cookie: { session } }) => { const response = await Auth.signIn(body)