mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
13 lines
396 B
TypeScript
13 lines
396 B
TypeScript
import apiClient from './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;
|
|
}
|
|
}
|
|
|