File "getPayments.ts"

Full Path: /var/www/html/front_back/workspace/Gitep-front/src/shared/api/getPayments.ts
File size: 279 bytes
MIME-type: text/x-java
Charset: utf-8

import { axiosInstance } from "@shared/api";

export const getPayments = async (userId: string) => {
  try {
    const result = await axiosInstance.get(`/payments?user_id=${userId}`);
    console.log('result', result)
    return result;
  } catch {
    throw new Error();
  }
};