mirror of
https://github.com/certd/certd.git
synced 2026-07-29 08:37:36 +08:00
chore: swagger support
This commit is contained in:
@@ -2,12 +2,14 @@ import {ALL, Body, Controller, Inject, Post, Provide, Query} from '@midwayjs/cor
|
||||
import {Constants, CrudController} from '@certd/lib-server';
|
||||
import { TemplateService } from '../../../modules/pipeline/service/template-service.js';
|
||||
import { checkPlus } from '@certd/plus-core';
|
||||
import { ApiTags } from '@midwayjs/swagger';
|
||||
|
||||
/**
|
||||
* 流水线模版
|
||||
*/
|
||||
@Provide()
|
||||
@Controller('/api/pi/template')
|
||||
@ApiTags(['pipeline-template'])
|
||||
export class TemplateController extends CrudController<TemplateService> {
|
||||
@Inject()
|
||||
service: TemplateService;
|
||||
|
||||
Reference in New Issue
Block a user