mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-04 20:05:38 +08:00
refactor: move search to module
This commit is contained in:
@@ -40,7 +40,7 @@ type ConversationSession = {
|
||||
};
|
||||
|
||||
type ConversationProjectResult = {
|
||||
// Emitted by server/projects.js#searchConversations so the sidebar can map a
|
||||
// Emitted by the provider search service so the sidebar can map a
|
||||
// match back to the Project in its current state by projectId.
|
||||
projectId: string | null;
|
||||
projectName: string;
|
||||
|
||||
@@ -100,7 +100,7 @@ export const api = {
|
||||
const token = localStorage.getItem('auth-token');
|
||||
const params = new URLSearchParams({ q: query, limit: String(limit) });
|
||||
if (token) params.set('token', token);
|
||||
return `/api/search/conversations?${params.toString()}`;
|
||||
return `/api/providers/search/sessions?${params.toString()}`;
|
||||
},
|
||||
createProject: (projectData) =>
|
||||
authenticatedFetch('/api/projects/create-project', {
|
||||
|
||||
Reference in New Issue
Block a user