MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / create_sample_doc

Function create_sample_doc

beanhub_cli/forms/app/routes.py:166–172  ·  view source on GitHub ↗
(sample_form_doc: deps.SampleFormDocDep)

Source from the content-addressed store, hash-verified

164
165@router.post("/create-sample-doc")
166def create_sample_doc(sample_form_doc: deps.SampleFormDocDep) -> dict:
167 form_doc_path = settings.BEANCOUNT_DIR / ".beanhub" / "forms.yaml"
168 if form_doc_path.exists():
169 return dict(code="already-exists")
170 form_doc_path.parent.mkdir(parents=True, exist_ok=True)
171 form_doc_path.write_text(sample_form_doc)
172 return dict(code="ok")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected