feat(lanes): add a read-only feature picker to the Workspace page (B)
This commit is contained in:
+19
-1
@@ -2013,8 +2013,26 @@ export const api = {
|
||||
method: "POST",
|
||||
body: JSON.stringify(body),
|
||||
}),
|
||||
/**
|
||||
* GET /api/lanes/:id/features — list all archived features for a lane.
|
||||
* @param id The lane id.
|
||||
* @returns `{ features }` — all {@link LaneFeature} records.
|
||||
*/
|
||||
features: {
|
||||
list: (id: number) =>
|
||||
request<{ features: import("./types").LaneFeature[] }>(`/lanes/${id}/features`),
|
||||
/**
|
||||
* GET /api/lanes/:id/features/:slug — fetch an archived feature snapshot.
|
||||
* @param id The lane id.
|
||||
* @param slug The feature slug.
|
||||
* @returns `{ feature }` — the {@link LaneFeature} record.
|
||||
*/
|
||||
show: (id: number, slug: string) =>
|
||||
request<{ feature: import("./types").LaneFeature }>(
|
||||
`/lanes/${id}/features/${encodeURIComponent(slug)}`
|
||||
),
|
||||
},
|
||||
},
|
||||
|
||||
// ──────────────────────────────── Locks API ────────────────────────────────
|
||||
/** Named locks across all lanes: used for serialization and gating.
|
||||
* Maps to `server/routes/locks.js`. */
|
||||
|
||||
Reference in New Issue
Block a user