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-06-16 02:47:03 +0200
committerRory& <root@rory.gay>2026-06-16 02:47:03 +0200
commit6e0f571b353769e70580b0d78344495f65c8dc25 (patch)
tree2864eeb39802a8079ce482ddff7e1d44aa2851c1 /src/api/routes/users/@me/mfa/webauthn
parentMove random string to Random class in extensions (diff)
downloadserver-ts-6e0f571b353769e70580b0d78344495f65c8dc25.tar.xz
Signify some imports more explicitly
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 c15a0144..32e60af5 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"; +import { route } from "@spacebar/api/util/handlers/route"; 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 774c4138..a7f1c20a 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"; +import { route } from "@spacebar/api/util/handlers/route"; import { SecurityKey, User } from "@spacebar/database"; import { DiscordApiErrors, FieldErrors, generateWebAuthnTicket, verifyWebAuthnToken, WebAuthn } from "@spacebar/util"; import { CreateWebAuthnCredentialSchema, GenerateWebAuthnCredentialsSchema, WebAuthnPostSchema } from "@spacebar/schemas";