add build env and path ingress controls

This commit is contained in:
2026-07-02 15:44:12 +09:00
parent 3195d36527
commit 2729e95a5b
7 changed files with 226 additions and 4 deletions
+15 -1
View File
@@ -1,4 +1,4 @@
import { Body, Controller, Delete, Get, Param, Patch, Post, Query } from '@nestjs/common';
import { Body, Controller, Delete, Get, Param, Patch, Post, Put, Query } from '@nestjs/common';
import { LinkComponentSourceDto } from '../gitea/dto';
import { AppsService } from './apps.service';
@@ -13,6 +13,7 @@ import {
CreateRuntimeEnvVariableDto,
CreateRuntimeIngressRuleDto,
EnsureRuntimeNamespaceDto,
ReplaceBuildEnvVariablesDto,
} from './dto';
@Controller('apps')
@@ -88,6 +89,19 @@ export class AppsController {
return this.appsService.linkComponentSource(componentId, body);
}
@Get('components/:componentId/build-env')
listComponentBuildEnv(@Param('componentId') componentId: string) {
return this.appsService.listComponentBuildEnv(componentId);
}
@Put('components/:componentId/build-env')
replaceComponentBuildEnv(
@Param('componentId') componentId: string,
@Body() body: ReplaceBuildEnvVariablesDto,
) {
return this.appsService.replaceComponentBuildEnv(componentId, body);
}
@Get('releases')
listReleases(@Query('appKey') appKey?: string) {
return this.appsService.listReleases(appKey);