Spaces:
Runtime error
Runtime error
File size: 1,780 Bytes
3b6afc0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
export const user = () => {
return '/api/user';
};
export const userPlugins = () => {
return '/api/user/plugins';
};
export const messages = (id: string) => {
return `/api/messages/${id}`;
};
export const abortRequest = (endpoint: string) => {
return `/api/ask/${endpoint}/abort`;
};
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 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 deletePreset = () => {
return '/api/presets/delete';
};
export const aiEndpoints = () => {
return '/api/endpoints';
};
export const tokenizer = () => {
return '/api/tokenizer';
};
export const login = () => {
return '/api/auth/login';
};
export const logout = () => {
return '/api/auth/logout';
};
export const register = () => {
return '/api/auth/register';
};
export const loginFacebook = () => {
return '/api/auth/facebook';
};
export const loginGoogle = () => {
return '/api/auth/google';
};
export const refreshToken = () => {
return '/api/auth/refresh';
};
export const requestPasswordReset = () => {
return '/api/auth/requestPasswordReset';
};
export const resetPassword = () => {
return '/api/auth/resetPassword';
};
export const plugins = () => {
return '/api/plugins';
};
export const config = () => {
return '/api/config';
};
|