(projectName: string, feature: FeatureCreate)
| 137 | } |
| 138 | |
| 139 | export async function createFeature(projectName: string, feature: FeatureCreate): Promise<Feature> { |
| 140 | return fetchJSON(`/projects/${encodeURIComponent(projectName)}/features`, { |
| 141 | method: 'POST', |
| 142 | body: JSON.stringify(feature), |
| 143 | }) |
| 144 | } |
| 145 | |
| 146 | export async function getFeature(projectName: string, featureId: number): Promise<Feature> { |
| 147 | return fetchJSON(`/projects/${encodeURIComponent(projectName)}/features/${featureId}`) |
nothing calls this directly
no test coverage detected