feat: releases 版本接口 + 全站仓库链接修正

- 后端 /api/releases/latest 代理 gitea Releases(10min 缓存,无发布/不可达时回退 SUNDYNIX_FALLBACK_VERSION)
- 前端 use-release hook 就绪(下载区动态接线暂缓)
- 仓库链接统一指向 git.sundynix.cn/sundynix/sundynix-agentix,下载按钮 # 占位改为 releases 页

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-17 13:27:29 +08:00
parent 197f40448e
commit 85a0b44ddd
8 changed files with 213 additions and 7 deletions
+2
View File
@@ -28,6 +28,8 @@ func New(db *gorm.DB) (*gin.Engine, error) {
posts := handler.NewPostHandler(db)
api.GET("/posts", posts.List)
api.GET("/posts/:slug", posts.Get)
api.GET("/releases/latest", handler.NewReleaseHandler().Latest)
}
// RSS 订阅源(页脚 RSS 链接指向这里)