server/utils/config.ts

16 lines
266 B
TypeScript
Raw Normal View History

2023-09-11 05:31:08 +02:00
import data from "../config/config.toml";
export type ConfigType = {
database: {
host: string;
port: number;
username: string;
password: string;
database: string;
}
[ key: string ]: any;
}
export const getConfig = () => {
return data as ConfigType;
}