summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/webauthn
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-21 15:47:45 +0200
committerRory& <root@rory.gay>2026-07-21 15:47:45 +0200
commitf662417b75d3e7714b9d0f8a0dbe8017bd5df022 (patch)
tree7b69cc1e7330b6d2b1f73a8a49cd8cb598606ecd /src/api/routes/users/@me/mfa/webauthn
parentMove authentication enforcement to route middleware, move route middleware file (diff)
downloadserver-ts-f662417b75d3e7714b9d0f8a0dbe8017bd5df022.tar.xz
NO-REVIEW: Fix up route import middleware path
Diffstat (limited to 'src/api/routes/users/@me/mfa/webauthn')
-rw-r--r--src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts2
-rw-r--r--src/api/routes/users/@me/mfa/webauthn/credentials/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts

index 32e60af5..5f7ec708 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/#key_id/index.ts
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { route } from "@spacebar/api/util/handlers/route"; +import { route } from "@spacebar/api/middlewares"; import { SecurityKey, User } from "@spacebar/database"; import { Request, Response, Router } from "express"; const router = Router({ mergeParams: true }); 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 a7f1c20a..fb3f0652 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
@@ -20,7 +20,7 @@ import bcrypt from "bcrypt"; import { Request, Response, Router } from "express"; import { ExpectedAttestationResult } from "fido2-lib"; import { HTTPError } from "lambert-server/HTTPError"; -import { route } from "@spacebar/api/util/handlers/route"; +import { route } from "@spacebar/api/middlewares"; import { SecurityKey, User } from "@spacebar/database"; import { DiscordApiErrors, FieldErrors, generateWebAuthnTicket, verifyWebAuthnToken, WebAuthn } from "@spacebar/util"; import { CreateWebAuthnCredentialSchema, GenerateWebAuthnCredentialsSchema, WebAuthnPostSchema } from "@spacebar/schemas";