mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -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(
|
router.patch(
|
||||||
"/:user",
|
"/:user",
|
||||||
scheme(
|
scheme(
|
||||||
UserUpdateScheme,
|
UserUpdateScheme
|
||||||
(c) =>
|
|
||||||
c.req.header("content-type") == "application/x-www-form-urlencoded"
|
|
||||||
? c.req.param()
|
|
||||||
: c.req.json()
|
|
||||||
),
|
),
|
||||||
assertAPI(
|
assertAPI(
|
||||||
ctx =>
|
ctx =>
|
||||||
|
|
Loading…
Reference in a new issue