Commit 21a2a74 1 parent 1d3a4af commit 21a2a74 Copy full SHA for 21a2a74
File tree 1 file changed +3
-3
lines changed
src/tools/server/sdk/pihole
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class PiHoleClient {
14
14
15
15
async getSummary ( ) {
16
16
const response = await fetch (
17
- new URL ( `${ this . baseHostName } /admin/ api.php?summaryRaw&auth=${ this . apiToken } ` )
17
+ new URL ( `${ this . baseHostName } /api.php?summaryRaw&auth=${ this . apiToken } ` )
18
18
) ;
19
19
20
20
if ( response . status !== 200 ) {
@@ -48,8 +48,8 @@ export class PiHoleClient {
48
48
) : Promise < PiHoleApiStatusChangeResponse > {
49
49
const response = await fetch (
50
50
duration !== 0
51
- ? `${ this . baseHostName } /admin/ api.php?${ action } =${ duration } &auth=${ this . apiToken } `
52
- : `${ this . baseHostName } /admin/ api.php?${ action } &auth=${ this . apiToken } `
51
+ ? `${ this . baseHostName } /api.php?${ action } =${ duration } &auth=${ this . apiToken } `
52
+ : `${ this . baseHostName } /api.php?${ action } &auth=${ this . apiToken } `
53
53
) ;
54
54
55
55
if ( response . status !== 200 ) {
You can’t perform that action at this time.
0 commit comments