feat(admin): implement user search functionality in admin portal

This commit is contained in:
Jose Selesan
2026-06-10 09:44:02 -03:00
parent c1c2f18471
commit 93b3a82638
5 changed files with 46 additions and 16 deletions

View File

@@ -51,8 +51,10 @@ export async function deletePlan(code: string) {
return response.data;
}
export async function listUsers() {
const response = await http.get<AdminUser[]>('/api/admin/users');
export async function listUsers(search?: string) {
const response = await http.get<AdminUser[]>('/api/admin/users', {
params: search ? { search } : undefined,
});
return response.data;
}