Implemented the new react version of the frontend

This commit is contained in:
Mohammed Abad committed 2026-03-31 01:56:38 +01:00
1 parent 236e6e06fb
commit ffe7e52527
65 files changed
+5228 -177

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { api } from '@/lib/api';
import type { People } from '@/types';
export const peopleApi = {
getAll: () => api.get<People[]>('/people').then((r) => r.data),
getById: (id: number) =>
api.get<People>(`/people/${id}`).then((r) => r.data),
};