html forms only support get and post im gonna have to make this a separate route
This commit is contained in:
May 2024-06-25 13:10:41 -07:00
parent ca99f85f62
commit 32a297d2ef
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -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 =>