add build env and path ingress controls
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user