diff --git a/routes/api/members/fetchAll.ts b/routes/api/members/fetchAll.ts index 3535d92..80508d8 100644 --- a/routes/api/members/fetchAll.ts +++ b/routes/api/members/fetchAll.ts @@ -5,7 +5,7 @@ import { SessionHandlers } from ':src/session/mod.ts' import { respondApi, respondApiStream } from ':src/utils.ts' export const handler: SessionHandlers = { - GET(_req, ctx) { + GET(ctx) { try { const memberList = dbToMemberCardProps(db) diff --git a/routes/api/webauthn/login/[step].ts b/routes/api/webauthn/login/[step].ts index dca5f5a..6ec7a95 100644 --- a/routes/api/webauthn/login/[step].ts +++ b/routes/api/webauthn/login/[step].ts @@ -27,7 +27,8 @@ export type WebAuthnLoginStartPayload = { export type WebAuthnLoginFinishPayload = AuthenticationResponseJSON export const handler: SessionHandlers = { - async POST(req, ctx) { + async POST(ctx) { + const req = ctx.req const relyingParty = getRelyingParty(ctx.url) const { step } = ctx.params as Params diff --git a/routes/api/webauthn/register/[step].ts b/routes/api/webauthn/register/[step].ts index a16fce9..00eeb6b 100644 --- a/routes/api/webauthn/register/[step].ts +++ b/routes/api/webauthn/register/[step].ts @@ -27,7 +27,8 @@ export type WebAuthnRegisterStartPayload = { name: string } export type WebAuthnRegisterFinishPayload = RegistrationResponseJSON export const handler: SessionHandlers = { - async POST(req, ctx) { + async POST(ctx) { + const req = ctx.req const relyingParty = getRelyingParty(ctx.url) const { step } = ctx.params as Params diff --git a/routes/api/webpush/vapid.ts b/routes/api/webpush/vapid.ts index 1c08c16..bcfb0e1 100644 --- a/routes/api/webpush/vapid.ts +++ b/routes/api/webpush/vapid.ts @@ -4,7 +4,6 @@ import { define } from '../../../utils.ts' export const handler = define.handlers({ GET() { - console.log('VAPID', publicKey) return respondApi('success', publicKey) }, })