From db13993e2fa6c84ca9025bfb3b1b69cc6bc8eaca Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 28 Jul 2024 14:57:37 +1000 Subject: [PATCH] feat: support v1 URLs --- src/keys/controllers/hkp.controller.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/keys/controllers/hkp.controller.ts b/src/keys/controllers/hkp.controller.ts index 14eddf9..9184d66 100644 --- a/src/keys/controllers/hkp.controller.ts +++ b/src/keys/controllers/hkp.controller.ts @@ -2,6 +2,7 @@ import { BadRequestException, Controller, Get, + Param, Query, Req, } from '@nestjs/common' @@ -52,4 +53,9 @@ export class HKPController { return serializeIndexes(indexes) } } + + @Get('/pks/lookup/v1/:op/:search') + async v1Lookup(@Req() req: FastifyRequest, @Param('op') op: HKPOperation, @Param('search') search: string) { + return this.lookup(req, search, op); + } }