🧭 fix: Correct Subpath Routing for SSE and Favorites Endpoints (#11339)

Co-authored-by: Artyom Bogachenco <a.bogachenko@easyreport.ai>
This commit is contained in:
Artyom Bogachenko 2026-01-13 18:53:14 +03:00 committed by GitHub
parent 2a50c372ef
commit 5617bf71be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 7 deletions

View file

@ -32,11 +32,11 @@ export type FavoriteItem = {
};
export function getFavorites(): Promise<FavoriteItem[]> {
return request.get('/api/user/settings/favorites');
return request.get(`${endpoints.apiBaseUrl()}/api/user/settings/favorites`);
}
export function updateFavorites(favorites: FavoriteItem[]): Promise<FavoriteItem[]> {
return request.post('/api/user/settings/favorites', { favorites });
return request.post(`${endpoints.apiBaseUrl()}/api/user/settings/favorites`, { favorites });
}
export function getSharedMessages(shareId: string): Promise<t.TSharedMessagesResponse> {