cli: POST /api/page-away is named as the window's own, so the route parity test is green

80a315a70 added POST /api/page-away, the page saying it went from view
so its Sessions and Usage caches can go. It has no CLI meaning, and
TestEveryRouteHasACommandOrIsNamed was red on main for it. It is now
in notYet as a window route.

Run: go test -run TestEveryRouteHasACommandOrIsNamed ./internal/cli on
mote at origin/main 75f872ef1: red before, ok after.
This commit is contained in:
yetone
2026-11-14 17:48:48 +08:00
parent 81825ed81d
commit 69946f43c4
+1
View File
@@ -253,6 +253,7 @@ var notYet = map[string]string{
"GET /api/appearance/wallpaper": W, // appearance.go
"POST /api/appearance/wallpaper": W, // appearance.go: the picture comes from the window's file picker
"GET /api/quit": W, // api.go: the window's Quit question
"POST /api/page-away": W, // api.go: the page says it went from view, so its caches can go
"GET /api/remote": W, // remote.go: another magpie opened in a window of the app
"POST /api/remote": W, // remote.go
"POST /api/remote/forget": W, // remote.go