mirror of
https://github.com/mudita/mudita-center.git
synced 2026-06-13 19:05:21 -04:00
Co-authored-by: Daniel Karski <daniel.karski5q@gmail.com> Co-authored-by: Oskar Michalkiewicz <32848134+OskarMichalkiewicz@users.noreply.github.com> Co-authored-by: Łukasz Kowalczyk <freelancer.lukasz.kowalczyk@gmail.com> Co-authored-by: Michał Kurczewski <michalkurczewski94@gmail.com> Co-authored-by: mkurczewski <michal@kurczewski.dev>
19 lines
635 B
TypeScript
19 lines
635 B
TypeScript
/**
|
|
* Copyright (c) Mudita sp. z o.o. All rights reserved.
|
|
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md
|
|
*/
|
|
|
|
import { IpcEvent } from "Core/core/decorators"
|
|
import { IpcConfigurationsEvent } from "Core/settings/constants"
|
|
import { Configuration } from "Core/settings/dto"
|
|
import { ConfigurationService } from "Core/settings/services"
|
|
|
|
export class ConfigurationController {
|
|
constructor(private configurationService: ConfigurationService) {}
|
|
|
|
@IpcEvent(IpcConfigurationsEvent.Get)
|
|
async getSettings(): Promise<Configuration> {
|
|
return this.configurationService.getConfiguration()
|
|
}
|
|
}
|