feat: support v1 URLs

This commit is contained in:
b1ek 2024-07-28 14:57:37 +10:00
parent d3c2907ef7
commit db13993e2f
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import {
BadRequestException, BadRequestException,
Controller, Controller,
Get, Get,
Param,
Query, Query,
Req, Req,
} from '@nestjs/common' } from '@nestjs/common'
@ -52,4 +53,9 @@ export class HKPController {
return serializeIndexes(indexes) 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);
}
} }