summary refs log tree commit diff
path: root/src/util/Config.ts
blob: eee20e1dd4250529f7bb1264122f09a966e2fa9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Config } from "@fosscord/server-util";

export default {
	init() {
		return Config.init({ gateway: DefaultOptions });
	},
	get() {
		return Config.getAll().gateway;
	},
	set(val: any) {
		return Config.setAll({ gateway: val });
	},
	getAll: Config.getAll,
	setAll: Config.setAll,
};

export interface DefaultOptions {
	endpoint?: string;
}

export const DefaultOptions: DefaultOptions = {};