feat: add optional proxy for online updates

This commit is contained in:
ji ruo committed 2026-10-15 15:44:55 +08:00
1 parent e94a7d472b
commit 6a3d39e969
13 files changed
+612 -47

No files matched your search

+2
View File
@@ -704,6 +704,8 @@ func (s *Server) Handler() http.Handler {
// 页面一键更新。走的是默认的 JWT 鉴权(auth.go 只放行 /api/auth/* 和
// /api/health),所以这几个改动程序自身的接口天然需要登录。
mux.HandleFunc("GET /api/update/settings", s.getUpdateSettings)
mux.HandleFunc("PUT /api/update/settings", s.putUpdateSettings)
mux.HandleFunc("GET /api/update/check", s.updateCheck)
mux.HandleFunc("POST /api/update/apply", s.updateApply)
mux.HandleFunc("POST /api/update/rollback", s.updateRollback)