Skip to content

Commit c7d26a9

Browse files
Copilothotlong
andcommitted
Remove duplicate /api/v1/index.json handler from mocks.ts
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8299c55 commit c7d26a9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.storybook/mocks.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ export const handlers = [
1717
// - /api/v1/data/:object (GET, POST)
1818
// - /api/v1/data/:object/:id (GET, PUT, DELETE)
1919
// - /api/v1/metadata/*
20+
// - /api/v1/index.json (for ObjectStackClient.connect())
2021
// - /api/bootstrap
21-
22-
// Handle /api/v1/index.json for ObjectStackClient.connect()
23-
http.get('/api/v1/index.json', async () => {
24-
return HttpResponse.json({
25-
version: '1.0',
26-
objects: ['contact', 'opportunity', 'account'],
27-
endpoints: {
28-
data: '/api/v1/data',
29-
metadata: '/api/v1/metadata'
30-
}
31-
});
32-
}),
3322
];

0 commit comments

Comments
 (0)