Подключаем api

This commit is contained in:
Book Pauk
2019-01-01 22:55:32 +07:00
parent 64d16677d3
commit 1ffc15a6ed
6 changed files with 107 additions and 16 deletions

View File

@@ -1,8 +1,8 @@
import axios from 'axios';
class Misc {
async getConfig() {
const response = await axios.post('/api/config', {params: ['name', 'version']});
async loadConfig() {
const response = await axios.post('/api/config1', {params: ['name', 'version']});
return response.data;
}
}