Implemented the new react version of the frontend
This commit is contained in:
1 parent
236e6e06fb
commit
ffe7e52527
65 files changed
+5228
-177
No files matched your search
@@ -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),
|
||||
};
|
||||
Reference in new issue
Block a user