feat: 增加 pipeline和 deployment

This commit is contained in:
2025-09-21 21:38:42 +08:00
parent ef4fce6d42
commit fd0cf782c4
10 changed files with 154 additions and 17 deletions

View File

@@ -0,0 +1,22 @@
import type { Context } from 'koa';
import { Controller, Get, Post } from '../../decorators/route.ts';
import prisma from '../../libs/db.ts';
@Controller('/pipelines')
export class PipelineController {
@Get('/:id')
async get(ctx: Context) {
const id = ctx.params.id;
const pipeline = await prisma.pipeline.findUnique({
where: {
id: id,
},
});
return pipeline;
}
@Post('')
async create(ctx: Context) {
}
}