chore: build metadata (#10612)

feat: build metadata
This commit is contained in:
Jason Rasmussen 2024-06-26 08:25:09 -04:00 committed by GitHub
parent 15c1cd6449
commit 8a445cac07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 905 additions and 18 deletions

View file

@ -1,6 +1,7 @@
import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import {
ServerAboutResponseDto,
ServerConfigDto,
ServerFeaturesDto,
ServerMediaTypesResponseDto,
@ -22,6 +23,12 @@ export class ServerInfoController {
private versionService: VersionService,
) {}
@Get('about')
@Authenticated()
getAboutInfo(): Promise<ServerAboutResponseDto> {
return this.service.getAboutInfo();
}
@Get('storage')
@Authenticated()
getStorage(): Promise<ServerStorageResponseDto> {