mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-03 20:21:51 +08:00
feat: add optional proxy for online updates
This commit is contained in:
1 parent
e94a7d472b
commit
6a3d39e969
13 files changed
+612
-47
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user