mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-02 22:12:53 +03:00
Added select for listen interfaces
This commit is contained in:
parent
5abe5af707
commit
f379d34813
10 changed files with 211 additions and 107 deletions
client/src/api
|
@ -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' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue