refactor(api): move webui endpoints out of nodes and fix office state updates

This commit is contained in:
lpf
2026-03-05 16:09:36 +08:00
parent e4da6d2141
commit 3553be2d53
6 changed files with 738 additions and 168 deletions

12
pkg/api/reload_unix.go Normal file
View File

@@ -0,0 +1,12 @@
//go:build !windows
package api
import (
"os"
"syscall"
)
func requestSelfReloadSignal() error {
return syscall.Kill(os.Getpid(), syscall.SIGHUP)
}

View File

@@ -0,0 +1,8 @@
//go:build windows
package api
// requestSelfReloadSignal is a no-op on Windows (no SIGHUP semantics).
func requestSelfReloadSignal() error {
return nil
}

3245
pkg/api/server.go Normal file

File diff suppressed because it is too large Load Diff