mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 03:01:09 +01:00
10 lines
339 B
TypeScript
10 lines
339 B
TypeScript
|
|
import { ConfigType } from '../../types/config';
|
||
|
|
import { configExists } from './configExists';
|
||
|
|
import { getFallbackConfig } from './getFallbackConfig';
|
||
|
|
import { readConfig } from './readConfig';
|
||
|
|
|
||
|
|
export const getConfig = (name: string): ConfigType => {
|
||
|
|
if (!configExists(name)) return getFallbackConfig();
|
||
|
|
return readConfig(name);
|
||
|
|
};
|