加入「拾源」:想法 → GitHub 条件 → 仓库 → AI 解读与存档
- 新增 explore 应用:Idea / SearchSpec / Repository / Note 及迁移 - Ollama 生成 GitHub 检索条件(language / stars / topic / sort),并批量解读仓库简介 - 接入 GitHub 仓库搜索 REST API,结果入库并按想法关联 - 想法级与仓库级「我的其他思考」,支持多条添加与删除 - 新增存档页:按想法 / 有想法的仓库两个视角,跨想法合并仓库 - 前端 /explore/ 四步流程、条件展示、筛选器、AI 解读目录、?idea= 恢复现场 - settings 增加 OLLAMA_* / GITHUB_* 配置
This commit is contained in:
+23
-3
@@ -1,9 +1,29 @@
|
||||
from django.urls import path
|
||||
from .views import sitemap_markdown
|
||||
from .views import (
|
||||
explore_analyze,
|
||||
explore_extract,
|
||||
explore_idea_detail,
|
||||
explore_idea_note_create,
|
||||
explore_note_delete,
|
||||
explore_query,
|
||||
explore_repo_note_create,
|
||||
explore_search,
|
||||
sitemap_markdown,
|
||||
)
|
||||
|
||||
app_name = "api"
|
||||
|
||||
urlpatterns = [
|
||||
# 对应前端请求的 /api/sitemap/
|
||||
# 站点地图
|
||||
path('sitemap/', sitemap_markdown, name='sitemap-markdown'),
|
||||
]
|
||||
|
||||
# 拾源:想法 / 检索条件 / 仓库 / 思考
|
||||
path('explore/extract/', explore_extract, name='explore-extract'),
|
||||
path('explore/query/', explore_query, name='explore-query'),
|
||||
path('explore/search/', explore_search, name='explore-search'),
|
||||
path('explore/analyze/', explore_analyze, name='explore-analyze'),
|
||||
path('explore/ideas/<int:idea_id>/', explore_idea_detail, name='explore-idea-detail'),
|
||||
path('explore/ideas/<int:idea_id>/notes/', explore_idea_note_create, name='explore-idea-note'),
|
||||
path('explore/repos/<int:repo_id>/notes/', explore_repo_note_create, name='explore-repo-note'),
|
||||
path('explore/notes/<int:note_id>/', explore_note_delete, name='explore-note-delete'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user