fix: send calendar heartbeat as post
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
* Default backendUrl: "https://monitor.hangman-lab.top"
|
* Default backendUrl: "https://monitor.hangman-lab.top"
|
||||||
*
|
*
|
||||||
* Endpoints used:
|
* Endpoints used:
|
||||||
* GET /calendar/agent/heartbeat — fetch pending slots
|
* POST /calendar/agent/heartbeat — fetch pending slots
|
||||||
* PATCH /calendar/slots/{id}/agent-update — update real slot status
|
* PATCH /calendar/slots/{id}/agent-update — update real slot status
|
||||||
* PATCH /calendar/slots/virtual/{vid}/agent-update — update virtual slot status
|
* PATCH /calendar/slots/virtual/{vid}/agent-update — update virtual slot status
|
||||||
*
|
*
|
||||||
@@ -77,7 +77,7 @@ export class CalendarBridgeClient {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.fetchJson<CalendarHeartbeatResponse>(url, {
|
const response = await this.fetchJson<CalendarHeartbeatResponse>(url, {
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'X-Agent-ID': this.config.agentId,
|
'X-Agent-ID': this.config.agentId,
|
||||||
|
|||||||
Reference in New Issue
Block a user