chore: format

This commit is contained in:
xiaojunnuo
2026-05-31 01:41:33 +08:00
parent acd440106b
commit 4b57a0d729
557 changed files with 12530 additions and 14039 deletions
@@ -1,18 +1,18 @@
import { BaseController, Constants } from '@certd/lib-server';
import { Controller, Get, Inject, Param, Post, Provide } from '@midwayjs/core';
import { PipelineService } from '../../modules/pipeline/service/pipeline-service.js';
import { BaseController, Constants } from "@certd/lib-server";
import { Controller, Get, Inject, Param, Post, Provide } from "@midwayjs/core";
import { PipelineService } from "../../modules/pipeline/service/pipeline-service.js";
/**
*/
@Provide()
@Controller('/api/webhook/')
@Controller("/api/webhook/")
export class WebhookController extends BaseController {
@Inject()
pipelineService: PipelineService;
@Get('/:webhookKey', { description: Constants.per.guest })
@Post('/:webhookKey', { description: Constants.per.guest })
async webhook(@Param('webhookKey') webhookKey: string): Promise<any> {
@Get("/:webhookKey", { description: Constants.per.guest })
@Post("/:webhookKey", { description: Constants.per.guest })
async webhook(@Param("webhookKey") webhookKey: string): Promise<any> {
await this.pipelineService.triggerByWebhook(webhookKey);
return this.ok({});
}