mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-26 15:52:20 +01:00
fd5c3a87ce
other payment gateways will have their own separate endpoints
13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import apiClient from './clients/api-client';
|
|
import { AxiosResponse } from 'axios';
|
|
import wrapPromise, { IWrapPromise } from '../lib/wrap-promise';
|
|
import { Wallet } from '../models/wallet';
|
|
|
|
export default class WalletAPI {
|
|
static async getByUser (user_id: number): Promise<Wallet> {
|
|
const res: AxiosResponse = await apiClient.get(`/api/wallet/by_user/${user_id}`);
|
|
return res?.data;
|
|
}
|
|
}
|
|
|