feat: complete backend swagger annotations, admin pages pagination, and frontend application fixes
This commit is contained in:
1 parent
24137beb32
commit
2851ef8a25
41 files changed
+478
-128
No files matched your search
@@ -18,7 +18,7 @@ export default function Pets() {
|
||||
const res = await api.get('/admin/pets', { params: { page, limit, search } });
|
||||
if (res.data?.data) {
|
||||
setPets(res.data.data);
|
||||
setTotalPages(res.data.meta?.totalPages || 1);
|
||||
setTotalPages(res.data.meta?.lastPage || 1);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
||||
Reference in new issue
Block a user