mirror of
https://github.com/certd/certd.git
synced 2026-04-16 14:00:51 +08:00
chore:
This commit is contained in:
@@ -63,7 +63,7 @@ export class OpenKeyController extends CrudController<OpenKeyService> {
|
||||
}
|
||||
|
||||
@Post('/getApiToken', { summary: Constants.per.authOnly })
|
||||
async getApiToken(@Query('id') id: number) {
|
||||
async getApiToken(@Body('id') id: number) {
|
||||
await this.service.checkUserId(id, this.getUserId());
|
||||
const token = await this.service.getApiToken(id);
|
||||
return this.ok(token);
|
||||
|
||||
Reference in New Issue
Block a user