Phase3
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 13s

This commit is contained in:
smueller
2026-06-26 12:17:26 +02:00
parent c4077d4673
commit 9b061c3ee7
92 changed files with 4128 additions and 146 deletions

View File

@@ -7,6 +7,7 @@ import {
Param,
ParseUUIDPipe,
Post,
Query,
UseGuards,
} from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
@@ -73,4 +74,15 @@ export class ServersController {
) {
return this.serversService.stopServer(user.id, id);
}
@Post(':id/restart')
@HttpCode(HttpStatus.ACCEPTED)
@ApiOperation({ summary: 'Restart a game server' })
restart(
@CurrentUser() user: { id: string },
@Param('id', ParseUUIDPipe) id: string,
@Query('skip') skip?: string,
) {
return this.serversService.restartServer(user.id, id, skip === 'true');
}
}