mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-12 01:52:49 +00:00
12 lines
251 B
TypeScript
12 lines
251 B
TypeScript
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,
|
|
};
|