Spaces:
Runtime error
Runtime error
| import { Controller, Get } from '@nestjs/common'; | |
| import { | |
| ApiExtraModels, | |
| ApiOperation, | |
| ApiSecurity, | |
| ApiTags, | |
| } from '@nestjs/swagger'; | |
| import { WAHAEnvironment } from '../structures/environment.dto'; | |
| import { VERSION } from '../version'; | |
| ('api_key') | |
| ('api/version') | |
| ('๐ Observability') | |
| export class VersionController { | |
| ('') | |
| ({ | |
| summary: 'Get the server version ', | |
| deprecated: true, | |
| description: "Use 'GET /api/server/version' instead ", | |
| }) | |
| get(): WAHAEnvironment { | |
| return VERSION; | |
| } | |
| } | |