Add restart command, fix post-update restarts as well.

This commit is contained in:
2025-12-19 02:17:27 +00:00
parent d90664d27d
commit 2098a38d64
12 changed files with 206 additions and 42 deletions
+3
View File
@@ -635,6 +635,9 @@ func (s *Service) setupRoutes() {
s.router.Get("/api/update/status", s.handleUpdateStatus)
s.router.Post("/api/update/restart", s.handleUpdateRestart)
// General restart endpoint (works before DB is ready)
s.router.Post("/api/restart", s.handleRestart)
// Selfcheck endpoint (works before DB is ready - checks all components)
s.router.Get("/api/selfcheck", s.handleSelfCheck)