feat: RSS 订阅源 + 仓库 README

- GET /rss.xml 输出 RSS 2.0(已发布文章,SUNDYNIX_SITE_URL 可配)
- vite 代理补 /rss.xml,页脚 RSS 链接生效
- README:结构、开发流程、环境变量、后端规范、API 速览

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-17 11:06:21 +08:00
parent 5abc705eae
commit 0250355dcd
5 changed files with 152 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ func New(db *gorm.DB) (*gin.Engine, error) {
api.GET("/posts/:slug", posts.Get)
}
// RSS 订阅源(页脚 RSS 链接指向这里)
r.GET("/rss.xml", handler.NewRSSHandler(db).Feed)
// ── 管理端 API ──
adminAuth := handler.NewAdminAuthHandler()
api.POST("/admin/login", adminAuth.Login)