pub async fn handle_migrate(
__arg0: State<AppState>,
headers: HeaderMap,
) -> ResponseExpand description
POST /api/config/migrate — apply the schema migration chain to the
on-disk config file in place. Mirrors zeroclaw config migrate. Backs
up the previous content alongside the original (config.toml.bak)
before writing the migrated form. Returns {migrated: false} when the
config is already at the current schema version.