1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 10:02:49 +00:00

load config from server instead of config file

This commit is contained in:
2018-11-06 21:05:55 -06:00
parent cd9b61e0b7
commit 47e365a64b
6 changed files with 38 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
import axios from '../axios/axios';
import { IConfig } from '../model/config';
const getConfig = async (): Promise<IConfig> => {
const res = await axios.get('/api/config');
return res.data.data;
};
export const ConfigService = {
getConfig,
};