refactor(server): config service (#13066)

* refactor(server): config service

* fix: function renaming

---------

Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
Jason Rasmussen 2024-09-30 17:31:21 -04:00 committed by GitHub
parent f63d251490
commit a019fb670e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 327 additions and 361 deletions

View file

@ -66,7 +66,7 @@ export class ServerInfoController {
@Get('config')
@EndpointLifecycle({ deprecatedAt: 'v1.107.0' })
getServerConfig(): Promise<ServerConfigDto> {
return this.service.getConfig();
return this.service.getSystemConfig();
}
@Get('statistics')

View file

@ -58,7 +58,7 @@ export class ServerController {
@Get('config')
getServerConfig(): Promise<ServerConfigDto> {
return this.service.getConfig();
return this.service.getSystemConfig();
}
@Get('statistics')

View file

@ -13,7 +13,7 @@ export class SystemConfigController {
@Get()
@Authenticated({ permission: Permission.SYSTEM_CONFIG_READ, admin: true })
getConfig(): Promise<SystemConfigDto> {
return this.service.getConfig();
return this.service.getSystemConfig();
}
@Get('defaults')
@ -25,7 +25,7 @@ export class SystemConfigController {
@Put()
@Authenticated({ permission: Permission.SYSTEM_CONFIG_UPDATE, admin: true })
updateConfig(@Body() dto: SystemConfigDto): Promise<SystemConfigDto> {
return this.service.updateConfig(dto);
return this.service.updateSystemConfig(dto);
}
@Get('storage-template-options')