Add several endpoints
This commit is contained in:
1 parent
5beb0684a7
commit
f78e5ca94c
5 files changed
+29
-9
No files matched your search
@@ -52,10 +52,7 @@ const TeamPanel = () => {
|
||||
useEffect(() => {
|
||||
const fetchTeam = async () => {
|
||||
try {
|
||||
const response = await axiosInstance.get("/auth/users", {
|
||||
headers: { Authorization: `Bearer ${authToken}` },
|
||||
});
|
||||
|
||||
const response = await axiosInstance.getAllUsers(authToken);
|
||||
setMembers(response.data.data);
|
||||
} catch (error) {
|
||||
createToast({
|
||||
|
||||
Reference in new issue
Block a user