mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore:
This commit is contained in:
@@ -29,6 +29,12 @@ export class PluginController extends BaseController {
|
||||
return this.ok(group);
|
||||
}
|
||||
|
||||
@Post('/getDefineByType', { summary: Constants.per.authOnly })
|
||||
async getDefineByType(@Body('type') type: string) {
|
||||
const define = await this.service.getDefineByType(type);
|
||||
return this.ok(define);
|
||||
}
|
||||
|
||||
@Post('/config', { summary: Constants.per.authOnly })
|
||||
async config(@Body(ALL) body: { id?: number; name?: string; type: string }) {
|
||||
const config = await this.pluginConfigService.getPluginConfig(body);
|
||||
|
||||
Reference in New Issue
Block a user