MCPcopy Index your code
hub / github.com/AutoForgeAI/autoforge / createFeature

Function createFeature

ui/src/lib/api.ts:139–144  ·  view source on GitHub ↗
(projectName: string, feature: FeatureCreate)

Source from the content-addressed store, hash-verified

137}
138
139export 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
146export async function getFeature(projectName: string, featureId: number): Promise<Feature> {
147 return fetchJSON(`/projects/${encodeURIComponent(projectName)}/features/${featureId}`)

Callers

nothing calls this directly

Calls 1

fetchJSONFunction · 0.85

Tested by

no test coverage detected