mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-29 10:28:53 +03:00
Send dhcp/find_active_dhcp as POST request
This commit is contained in:
parent
d46b65f982
commit
a74c2248fb
3 changed files with 4 additions and 4 deletions
|
@ -561,8 +561,8 @@ export const findActiveDhcpFailure = createAction('FIND_ACTIVE_DHCP_FAILURE');
|
||||||
export const findActiveDhcp = () => async (dispatch) => {
|
export const findActiveDhcp = () => async (dispatch) => {
|
||||||
dispatch(findActiveDhcpRequest());
|
dispatch(findActiveDhcpRequest());
|
||||||
try {
|
try {
|
||||||
const result = await apiClient.findActiveDhcp();
|
await apiClient.findActiveDhcp();
|
||||||
dispatch(findActiveDhcpSuccess(result));
|
dispatch(findActiveDhcpSuccess());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch(addErrorToast({ error }));
|
dispatch(addErrorToast({ error }));
|
||||||
dispatch(findActiveDhcpFailure());
|
dispatch(findActiveDhcpFailure());
|
||||||
|
|
|
@ -306,7 +306,7 @@ export default class Api {
|
||||||
// DHCP
|
// DHCP
|
||||||
DHCP_STATUS = { path: 'dhcp/status', method: 'GET' };
|
DHCP_STATUS = { path: 'dhcp/status', method: 'GET' };
|
||||||
DHCP_SET_CONFIG = { path: 'dhcp/set_config', method: 'POST' };
|
DHCP_SET_CONFIG = { path: 'dhcp/set_config', method: 'POST' };
|
||||||
DHCP_FIND_ACTIVE = { path: 'dhcp/find_active_dhcp', method: 'GET' };
|
DHCP_FIND_ACTIVE = { path: 'dhcp/find_active_dhcp', method: 'POST' };
|
||||||
|
|
||||||
getDhcpStatus() {
|
getDhcpStatus() {
|
||||||
const { path, method } = this.DHCP_STATUS;
|
const { path, method } = this.DHCP_STATUS;
|
||||||
|
|
|
@ -303,7 +303,7 @@ paths:
|
||||||
description: OK
|
description: OK
|
||||||
|
|
||||||
/dhcp/find_active_dhcp:
|
/dhcp/find_active_dhcp:
|
||||||
get:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- dhcp
|
- dhcp
|
||||||
operationId: checkActiveDhcp
|
operationId: checkActiveDhcp
|
||||||
|
|
Loading…
Reference in a new issue