Merge pull request #1722 from pi-hole/poweroff

Remove traces of reboot and poweroff
This commit is contained in:
DL6ER 2023-11-02 05:30:47 +01:00 committed by GitHub
commit 4a78d886f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 58 deletions

View File

@ -105,8 +105,6 @@ int api_teleporter(struct ftl_conn *api);
// Action methods
int api_action_gravity(struct ftl_conn *api);
int api_action_poweroff(struct ftl_conn *api);
int api_action_reboot(struct ftl_conn *api);
int api_action_restartDNS(struct ftl_conn *api);
int api_action_flush_logs(struct ftl_conn *api);
int api_action_flush_arp(struct ftl_conn *api);

View File

@ -63,56 +63,6 @@ components:
application/json:
schema:
$ref: 'common.yaml#/components/errors/unauthorized'
reboot:
post:
summary: Reboot the system
tags:
- Actions
operationId: "action_reboot"
description: |
Reboots the system Pi-hole is running on. Note that this should be done as a last-resort only as it will forcefully interrupt all currently running processes.
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/schemas/success'
- $ref: 'common.yaml#/components/schemas/took'
'401':
description: Unauthorized
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/errors/unauthorized'
- $ref: 'common.yaml#/components/schemas/took'
poweroff:
post:
summary: Poweroff the system
tags:
- Actions
operationId: "action_poweroff"
description: |
Halts and powers off the system Pi-hole is running on. Note that this should be done as a last-resort only as it will forcefully interrupt all currently running processes.
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/schemas/success'
- $ref: 'common.yaml#/components/schemas/took'
'401':
description: Unauthorized
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/errors/unauthorized'
- $ref: 'common.yaml#/components/schemas/took'
restartdns:
post:
summary: Restart pihole-FTL

View File

@ -244,12 +244,6 @@ paths:
/action/flush/arp:
$ref: 'action.yaml#/components/paths/flush_arp'
/action/reboot:
$ref: 'action.yaml#/components/paths/reboot'
/action/poweroff:
$ref: 'action.yaml#/components/paths/poweroff'
/dhcp/leases:
$ref: 'dhcp.yaml#/components/paths/leases'