mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-02 23:07:35 +00:00
refactor: remove unused /api/config endpoint and update WebSocket connection logic
This commit is contained in:
@@ -37,9 +37,9 @@ export const api = {
|
||||
user: () => authenticatedFetch('/api/auth/user'),
|
||||
logout: () => authenticatedFetch('/api/auth/logout', { method: 'POST' }),
|
||||
},
|
||||
|
||||
|
||||
// Protected endpoints
|
||||
config: () => authenticatedFetch('/api/config'),
|
||||
// config endpoint removed - no longer needed (frontend uses window.location)
|
||||
projects: () => authenticatedFetch('/api/projects'),
|
||||
sessions: (projectName, limit = 5, offset = 0) =>
|
||||
authenticatedFetch(`/api/projects/${projectName}/sessions?limit=${limit}&offset=${offset}`),
|
||||
|
||||
Reference in New Issue
Block a user