feat : Création de l'api, chargement des mockups
This commit is contained in:
9
src/api/entities/event_stats_snapshots.ts
Normal file
9
src/api/entities/event_stats_snapshots.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { EventStatsSnapshot } from '@/models';
|
||||
import { mockEventStatsSnapshots } from '@/mocks';
|
||||
import { createResourceApi } from '../resourceFactory';
|
||||
|
||||
export const event_stats_snapshotsApi = createResourceApi<EventStatsSnapshot>({
|
||||
endpoint: 'event_stats_snapshots',
|
||||
mockData: mockEventStatsSnapshots,
|
||||
resolveMockKey: (item) => item.id,
|
||||
});
|
||||
Reference in New Issue
Block a user