refactor(server): new version check (#9555)

This commit is contained in:
Jason Rasmussen
2024-05-17 12:22:39 -04:00
committed by GitHub
parent 4807fc40a6
commit c03981ac1d
16 changed files with 257 additions and 102 deletions

View File

@@ -12,11 +12,15 @@ import {
} from 'src/dtos/server-info.dto';
import { Authenticated } from 'src/middleware/auth.guard';
import { ServerInfoService } from 'src/services/server-info.service';
import { VersionService } from 'src/services/version.service';
@ApiTags('Server Info')
@Controller('server-info')
export class ServerInfoController {
constructor(private service: ServerInfoService) {}
constructor(
private service: ServerInfoService,
private versionService: VersionService,
) {}
@Get()
@Authenticated()
@@ -31,7 +35,7 @@ export class ServerInfoController {
@Get('version')
getServerVersion(): ServerVersionResponseDto {
return this.service.getVersion();
return this.versionService.getVersion();
}
@Get('features')