modify users list page
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import axios from "@/config/axios";
|
||||
import type { GetCustomersResponse } from "@/pages/customers/types/Types";
|
||||
import type {
|
||||
GetCustomersResponse,
|
||||
GetUsersParams,
|
||||
} from "@/pages/customers/types/Types";
|
||||
|
||||
export const getUsers = async () => {
|
||||
const { data } = await axios.get<GetCustomersResponse>(`/admin/users`);
|
||||
export const getUsers = async (params?: GetUsersParams) => {
|
||||
const { data } = await axios.get<GetCustomersResponse>(`/admin/users`, {
|
||||
params,
|
||||
});
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user