feat: support v1 URLs
This commit is contained in:
parent
d3c2907ef7
commit
db13993e2f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue