mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
16 lines
266 B
TypeScript
16 lines
266 B
TypeScript
|
|
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;
|
||
|
|
}
|