We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ef5ea commit bc4e3efCopy full SHA for bc4e3ef
1 file changed
src/api/letter/share.tsx
@@ -1,20 +1,20 @@
1
-import { authClient } from "../client";
+import client, { authClient } from '../client';
2
3
export const getLetterShareStatus = async (
4
letterCode: string
5
): Promise<ShareStatusData> => {
6
- const response = await authClient.get(
+ const response = await client.get(
7
`/api/v1/letters/logs/share/status?letterCode=${letterCode}`
8
);
9
return response.data;
10
};
11
12
export type shareStatusType =
13
- | "MEMO_CHAT"
14
- | "DIRECT_CHAT"
15
- | "MULTI_CHAT"
16
- | "OPEN_DIRECT_CHAT"
17
- | "OPEN_MULTI_CHAT";
+ | 'MEMO_CHAT'
+ | 'DIRECT_CHAT'
+ | 'MULTI_CHAT'
+ | 'OPEN_DIRECT_CHAT'
+ | 'OPEN_MULTI_CHAT';
18
19
export type ShareStatusData = {
20
isShared: boolean;
0 commit comments