Skip to content

Commit

Permalink
fix: 2
Browse files Browse the repository at this point in the history
  • Loading branch information
choipureum committed Jun 1, 2024
1 parent bd79b64 commit 80ef5f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export function get<T>(...args: Parameters<typeof instance.get>) {
export function post<T>(url: string, data: unknown): Promise<T> {
return instance
.post<unknown, AxiosResponse<T>>(url, data)
.then((response) => response.data);
.then((response) => {
console.log(response.data);
return response.data;
});
}

export function put<T>(...args: Parameters<typeof instance.put>) {
Expand Down

0 comments on commit 80ef5f8

Please sign in to comment.