mirror of
https://github.com/syuilo/ai.git
synced 2024-11-14 09:47:59 +00:00
15 lines
271 B
TypeScript
15 lines
271 B
TypeScript
|
type Config = {
|
||
|
host: string;
|
||
|
i: string;
|
||
|
wsUrl: string;
|
||
|
apiUrl: string;
|
||
|
reversiEnabled: boolean;
|
||
|
};
|
||
|
|
||
|
const config = require('../config.json');
|
||
|
|
||
|
config.wsUrl = config.host.replace('http', 'ws');
|
||
|
config.apiUrl = config.host + '/api';
|
||
|
|
||
|
export default config as Config;
|