From 32a297d2efcf76885cc6679e28092364230b1f11 Mon Sep 17 00:00:00 2001 From: split Date: Tue, 25 Jun 2024 13:10:41 -0700 Subject: [PATCH] why html forms only support get and post im gonna have to make this a separate route --- src/server/routes/api/v1/account/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/server/routes/api/v1/account/index.ts b/src/server/routes/api/v1/account/index.ts index 506c974..be0f344 100644 --- a/src/server/routes/api/v1/account/index.ts +++ b/src/server/routes/api/v1/account/index.ts @@ -303,11 +303,7 @@ export default function (files: Files) { router.patch( "/:user", scheme( - UserUpdateScheme, - (c) => - c.req.header("content-type") == "application/x-www-form-urlencoded" - ? c.req.param() - : c.req.json() + UserUpdateScheme ), assertAPI( ctx =>