u
This commit is contained in:
24
src/api/account.js
Normal file
24
src/api/account.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { http } from './http.js';
|
||||
|
||||
/**
|
||||
* Company payment accounts.
|
||||
*/
|
||||
export const account = {
|
||||
// #region GET /api/account — list
|
||||
list() {
|
||||
return http('/api/account');
|
||||
},
|
||||
// #endregion
|
||||
|
||||
// #region POST /api/account — create
|
||||
create(body) {
|
||||
return http('/api/account', { method: 'POST', body });
|
||||
},
|
||||
// #endregion
|
||||
|
||||
// #region DELETE /api/account/:id — delete
|
||||
delete(id) {
|
||||
return http(`/api/account/${id}`, { method: 'DELETE' });
|
||||
},
|
||||
// #endregion
|
||||
};
|
||||
Reference in New Issue
Block a user