Added select for listen interfaces

This commit is contained in:
Ildar Kamalov 2019-02-01 19:52:42 +03:00 committed by Eugene Bujak
parent 5abe5af707
commit f379d34813
10 changed files with 211 additions and 107 deletions
client/src/api

View file

@ -338,16 +338,16 @@ export default class Api {
}
// Installation
GET_DEFAULT_ADDRESSES = { path: 'install/get_default_addresses', method: 'GET' };
SET_ALL_SETTINGS = { path: 'install/set_all_settings', method: 'POST' };
INSTALL_GET_ADDRESSES = { path: 'install/get_addresses', method: 'GET' };
INSTALL_CONFIGURE = { path: 'install/configure', method: 'POST' };
getDefaultAddresses() {
const { path, method } = this.GET_DEFAULT_ADDRESSES;
const { path, method } = this.INSTALL_GET_ADDRESSES;
return this.makeRequest(path, method);
}
setAllSettings(config) {
const { path, method } = this.SET_ALL_SETTINGS;
const { path, method } = this.INSTALL_CONFIGURE;
const parameters = {
data: config,
headers: { 'Content-Type': 'application/json' },