mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
✨Add calendar tile
This commit is contained in:
7
src/tools/config/readConfig.ts
Normal file
7
src/tools/config/readConfig.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import fs from 'fs';
|
||||
import { generateConfigPath } from './generateConfigPath';
|
||||
|
||||
export function readConfig(name: string) {
|
||||
const path = generateConfigPath(name);
|
||||
return JSON.parse(fs.readFileSync(path, 'utf8'));
|
||||
}
|
||||
Reference in New Issue
Block a user