summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-24 18:14:47 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:20:10 -0400
commit6b3a3b750f3e29b491c51f8199efd64c05176a65 (patch)
tree2f15670152c3fb99630c648a86dd63e0a0b86b74 /src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
parentAAA (diff)
downloadserver-6b3a3b750f3e29b491c51f8199efd64c05176a65.tar.xz
fixing lots of openapi crap
Diffstat (limited to 'src/api/routes/users/@me/mfa/webauthn/credentials/index.ts')
-rw-r--r--src/api/routes/users/@me/mfa/webauthn/credentials/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
index 29dbb7cf..46bdfdd0 100644
--- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
+++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
@@ -73,7 +73,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 
 router.post(
 	"/",
-	route({ body: "WebAuthnPostSchema" }),
+	route({ requestBody: "WebAuthnPostSchema" }),
 	async (req: Request, res: Response) => {
 		if (!WebAuthn.fido2) {
 			// TODO: I did this for typescript and I can't use !