Skip to content

Commit bca66ea

Browse files
committed
chore(table): drop the unused single-row GET contract
Authored as groundwork for migrating the internal row routes onto the shared builder, which is not in this change. An exported contract nothing consumes is dead code, so it lands with the migration that needs it instead.
1 parent d77dbba commit bca66ea

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

apps/sim/lib/api/contracts/tables.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,22 +1433,6 @@ export const upsertTableRowContract = defineRouteContract({
14331433
},
14341434
})
14351435

1436-
/**
1437-
* Reads one row. The sibling of {@link updateTableRowContract} and
1438-
* {@link deleteTableRowContract}, which take their workspace scope from a body;
1439-
* a GET has none, so it is asserted on the query string instead.
1440-
*/
1441-
export const getTableRowContract = defineRouteContract({
1442-
method: 'GET',
1443-
path: '/api/table/[tableId]/rows/[rowId]',
1444-
params: tableRowParamsSchema,
1445-
query: getTableQuerySchema,
1446-
response: {
1447-
mode: 'json',
1448-
schema: successResponseSchema(z.object({ row: tableRowSchema })),
1449-
},
1450-
})
1451-
14521436
export const updateTableRowContract = defineRouteContract({
14531437
method: 'PATCH',
14541438
path: '/api/table/[tableId]/rows/[rowId]',

0 commit comments

Comments
 (0)