cli: name /api/gateway/pause with the gateway's restart and take-over

e8fbee60e added POST /api/gateway/pause with no command and no notYet
line, so TestEveryRouteHasACommandOrIsNamed was red at 18c932385:
"POST /api/gateway/pause has no command". It waits for stage 3 beside
/api/gateway/restart and take-over.

Run on magpie-desktop: go test -tags nogui -run
TestEveryRouteHasACommandOrIsNamed ./internal/cli red at 18c932385 with
that line, ok with this.
This commit is contained in:
yetone
2026-11-10 19:56:36 +08:00
parent e7a08dcea0
commit db9f0652a8
+1
View File
@@ -337,6 +337,7 @@ var notYet = map[string]string{
"POST /api/dev/import": W, // dev_on.go
"GET /api/fonts": W, // fonts.go
"POST /api/settings/gateway-mode": S2, // gatewaymode.go
"POST /api/gateway/pause": A, // gatewaypause.go
"POST /api/gateway/restart": A, // gateway_takeover.go
"POST /api/gateway/take-over": A, // gateway_takeover.go
"GET /api/importapps": P, // importapps.go