mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
16 lines
273 B
TypeScript
16 lines
273 B
TypeScript
import data from "../config/config.toml";
|
|
|
|
export interface ConfigType {
|
|
database: {
|
|
host: string;
|
|
port: number;
|
|
username: string;
|
|
password: string;
|
|
database: string;
|
|
}
|
|
[ key: string ]: unknown;
|
|
}
|
|
|
|
export const getConfig = () => {
|
|
return data as ConfigType;
|
|
} |