Skip to content

Commit 7800bef

Browse files
authored
refactor: api endpoint changes for v5 (#8)
1 parent 1e784d3 commit 7800bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripting/payload-webhook.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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/webhooks/v1/internal/test", BaseUrl);
63+
Format(FullUrl, sizeof(FullUrl), "%s/v1/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/webhooks/v1/internal/logs", BaseUrl);
93+
Format(FullUrl, sizeof(FullUrl), "%s/v1/webhooks/logs", BaseUrl);
9494

9595
// For debug purposes:
9696
PrintToServer("FullURL: %s", FullUrl);

0 commit comments

Comments
 (0)