ai/src/config.ts

15 lines
271 B
TypeScript
Raw Normal View History

2018-08-11 01:42:06 +00:00
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;