Skip to content

Commit

Permalink
feat: add new services update user
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Oct 4, 2022
1 parent b8e8144 commit db51bb9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/services/update/user/approved.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { api } from 'services/api';

export async function approvedUserAWS(id: string) {
const { data, status } = await api.patch(`usuarios/aprovar/${id}`);

return { data, status };
}
2 changes: 2 additions & 0 deletions src/services/update/user/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './approved';
export * from './reprove';
7 changes: 7 additions & 0 deletions src/services/update/user/reprove.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { api } from 'services/api';

export async function reproveUserAWS(id: string) {
const { data, status } = await api.patch(`usuarios/reprovar/${id}`);

return { data, status };
}

0 comments on commit db51bb9

Please sign in to comment.