fixes
All checks were successful
Recommender Build and Deploy (internal) / Build Recommender Image (push) Successful in 4m5s
Recommender Build and Deploy (internal) / Deploy Recommender (internal) (push) Successful in 11s

This commit is contained in:
2026-03-31 19:55:20 -03:00
parent bb8a5da45e
commit 148755243a
5 changed files with 75 additions and 12 deletions

View File

@@ -4,7 +4,9 @@ const BASE = '/api';
async function request<T>(path: string, options?: RequestInit): Promise<T> {
const res = await fetch(`${BASE}${path}`, {
headers: { 'Content-Type': 'application/json' },
headers: {
...(options?.body ? { 'Content-Type': 'application/json' } : {}),
},
...options,
});
if (!res.ok) {