Allow simple pihole api output, containing only the JSON payload

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-03-19 19:26:17 -03:00
parent 1bdbc26a07
commit 190798e572
2 changed files with 25 additions and 9 deletions

2
pihole
View File

@@ -601,6 +601,6 @@ case "${1}" in
"updatechecker" ) shift; updateCheckFunc "$@";;
"arpflush" ) arpFunc "$@";;
"-t" | "tail" ) tailFunc "$2";;
"api" ) apiFunc "$2";;
"api" ) shift; apiFunc "$@";;
* ) helpFunc;;
esac