Skip to content

Commit

Permalink
Update api-endpoints.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bsu3338 committed Apr 12, 2024
1 parent 532249c commit 39de165
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/data-provider/src/api-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export const revokeUserKey = (name: string) => `${keysEndpoint}/${name}`;

export const revokeAllUserKeys = () => `${keysEndpoint}?all=true`;

const preferencesEndpoint = '/api/preferences';

export const preferences = () => preferencesEndpoint;

export const preferencesQuery = (name: string) => `${preferencesEndpoint}?name=${name}`;

export const abortRequest = (endpoint: string) => `/api/ask/${endpoint}/abort`;

export const conversations = (pageNumber: string) => `/api/convos?pageNumber=${pageNumber}`;
Expand Down

0 comments on commit 39de165

Please sign in to comment.