migration: preserve startup accounts and system slice

This commit is contained in:
leefer
2026-07-31 00:42:06 +08:00
parent e4a9b2e647
commit 982af4ba92
32 changed files with 6675 additions and 6321 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ def _role(method: str, path: str) -> str:
def build() -> dict:
text = (ROOT / "server.py").read_text(encoding="utf-8")
text = (ROOT / "backend" / "application.py").read_text(encoding="utf-8")
method_matches = list(re.finditer(r"^ def do_(GET|POST|DELETE)\(", text, re.MULTILINE))
routes = []
for index, match in enumerate(method_matches):