Skip to content

Commit cce55cf

Browse files
authored
chore(*): update endpoints to align with recent changes (#11)
1 parent 82d85d4 commit cce55cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripting/payload-webhook.sp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#pragma newdecls required
77
#pragma semicolon 1
88

9-
#define VERSION "1.1.0"
9+
#define VERSION "1.3.0"
1010

1111
char g_sWebhookToken[128];
1212

@@ -60,7 +60,7 @@ public Action TestUpload(int client, int args)
6060
GetConVarString(g_hCvarApiUrl, BaseUrl, sizeof(BaseUrl));
6161

6262
// Complete the baseUrl
63-
Format(FullUrl, sizeof(FullUrl), "%s/v1/webhooks/test", BaseUrl);
63+
Format(FullUrl, sizeof(FullUrl), "%s/webhooks/test", BaseUrl);
6464

6565
PrintToServer("[Payload] Testing webhook...");
6666
PrintToChatAll("[Payload] Testing webhook...");
@@ -90,7 +90,7 @@ public int LogUploaded(bool success, const char[] logid, const char[] url)
9090
GetConVarString(g_hCvarApiUrl, BaseUrl, sizeof(BaseUrl));
9191

9292
// Complete the baseUrl
93-
Format(FullUrl, sizeof(FullUrl), "%s/v1/webhooks/logs", BaseUrl);
93+
Format(FullUrl, sizeof(FullUrl), "%s/webhooks/logs", BaseUrl);
9494

9595
// For debug purposes:
9696
PrintToServer("FullURL: %s", FullUrl);
@@ -160,4 +160,4 @@ public int TestWebhookComplete(Handle hRequest, bool bFailure, bool bRequestSucc
160160
}
161161

162162
delete hRequest;
163-
}
163+
}

0 commit comments

Comments
 (0)