This commit is contained in:
Team3
2026-06-06 17:40:06 +02:00
parent c84fbbb484
commit b2486a73a1
13 changed files with 203 additions and 342 deletions

View File

@@ -24,7 +24,7 @@ from models import (
GuideChatRequest, GuideChatResponse,
ProgressUpdate, ProgressResponse, ProjectResponse, ProviderInfo,
)
from paths import bausteine_path, bausteine_topics, guide_content_path, project_dir
from paths import bausteine_path, bausteine_topics, guide_content_path, project_dir, topic_dir
router = APIRouter(prefix="/api")
@@ -54,6 +54,7 @@ async def add_topic(req: TopicCreateRequest):
@router.delete("/topics")
async def remove_topic(topic: str):
await delete_topic(topic)
shutil.rmtree(topic_dir(topic), ignore_errors=True)
return {"ok": True}