24def _switch(email: str, start: str, **body) -> dict:
25 request = Request({
"type":
"http",
"method":
"POST",
"path":
"/",
"query_string": b
"",
26 "headers": [(b
"x-auth-email", email.encode())]})
29 session = get_session(request)
30 session.app_state.set_config(load_config(str(REPO /
"configs" / start)))
31 return await config_router.switch_config_endpoint(body, session=session)
33 return asyncio.run(
main())