mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
change endpoints.ts to api-endpoints.ts
This commit is contained in:
parent
9e708225aa
commit
93b685a1a2
1 changed files with 51 additions and 0 deletions
51
client/src/data-provider/api-endpoints.ts
Normal file
51
client/src/data-provider/api-endpoints.ts
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
export const user = () => {
|
||||
return `/api/me`;
|
||||
};
|
||||
|
||||
export const messages = (id: string) => {
|
||||
return `/api/messages/${id}`;
|
||||
};
|
||||
|
||||
export const conversations = (pageNumber: string) => {
|
||||
return `/api/convos?pageNumber=${pageNumber}`;
|
||||
};
|
||||
|
||||
export const conversationById = (id: string) => {
|
||||
return `/api/convos/${id}`;
|
||||
};
|
||||
|
||||
export const updateConversation = () => {
|
||||
return `/api/convos/update`;
|
||||
};
|
||||
|
||||
export const deleteConversation = () => {
|
||||
return `/api/convos/clear`;
|
||||
};
|
||||
|
||||
export const prompts = () => {
|
||||
return `/api/prompts`;
|
||||
};
|
||||
|
||||
export const generateTitle = () => {
|
||||
return `/api/convos/gen_title`;
|
||||
};
|
||||
|
||||
export const search = (q: string, pageNumber: string) => {
|
||||
return `/api/search?q=${q}&pageNumber=${pageNumber}`;
|
||||
}
|
||||
|
||||
export const searchEnabled = () => {
|
||||
return `/api/search/enable`;
|
||||
}
|
||||
|
||||
export const presets = () => {
|
||||
return `/api/presets`;
|
||||
}
|
||||
|
||||
export const deletePresets = () => {
|
||||
return `/api/presets/delete`;
|
||||
}
|
||||
|
||||
export const aiEndpoints = () => {
|
||||
return `/api/endpoints`;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue