1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-23 12:52:20 +01:00
2021-07-01 12:04:48 +02:00

11 lines
336 B
TypeScript

import apiClient from './clients/api-client';
import { AxiosResponse } from 'axios';
import { Wallet } from '../models/wallet';
export default class WalletAPI {
static async getByUser (userId: number): Promise<Wallet> {
const res: AxiosResponse = await apiClient.get(`/api/wallet/by_user/${userId}`);
return res?.data;
}
}