Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: add trailing slash to profile API URLs to prevent POST→GET redirect (#1212)

rcourtmanad97f19cbf9d
diff --git a/frontend-modern/src/api/agentProfiles.ts b/frontend-modern/src/api/agentProfiles.ts
index 4ee1f02fca..4896b353b8 100644
--- a/frontend-modern/src/api/agentProfiles.ts
+++ b/frontend-modern/src/api/agentProfiles.ts
@@ -97,7 +97,7 @@ export class AgentProfilesAPI {
*/
static async listProfiles(): Promise<AgentProfile[]> {
try {
- const response = await apiFetchJSON<AgentProfile[]>(this.baseUrl);
+ const response = await apiFetchJSON<AgentProfile[]>(`${this.baseUrl}/`);
return response || [];
} catch (err) {
// Handle 402 gracefully - means not licensed
@@ -126,7 +126,7 @@ export class AgentProfilesAPI {
* Create a new profile.
*/
static async createProfile(name: string, config: Record<string, unknown>, description?: string): Promise<AgentProfile> {
- const response = await apiFetch(this.baseUrl, {
+ const response = await apiFetch(`${this.baseUrl}/`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name, description, config }),