import api from './api';

const bankService = {
    getAccounts: () => api.get('/banking'),
    createAccount: (data) => api.post('/banking', data),
    getTransactions: (accountId) => api.get(`/banking/${accountId}/transactions`),
    setDefault: (accountId) => api.patch(`/banking/${accountId}/default`)
};

export default bankService;
