mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 14:46:27 -08:00
why
html forms only support get and post im gonna have to make this a separate route
This commit is contained in:
parent
ca99f85f62
commit
32a297d2ef
|
@ -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 =>
|
||||
|
|
Loading…
Reference in a new issue