mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-19 16:56:12 +01:00
🧭 fix: Correct Subpath Routing for SSE and Favorites Endpoints (#11339)
Co-authored-by: Artyom Bogachenco <a.bogachenko@easyreport.ai>
This commit is contained in:
parent
2a50c372ef
commit
5617bf71be
4 changed files with 13 additions and 7 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue