migration: preserve startup accounts and system slice

This commit is contained in:
leefer
2026-07-31 00:42:06 +08:00
parent 4083dceba3
commit 4002f096f4
37 changed files with 6821 additions and 6327 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):