INNER CODE UNIT · Python

startup_event

iamgreggarcia/codesherpa · localserver/main.py:47

def startup_event():
    openapi_schema = app.openapi()
    openapi_schema["servers"] = [
        {
            "url": "http://localhost:3333",
            "description": "Local server",
        }
    ]
    app.openapi_schema = openapi_schema


executors = {
    "python": PythonExecutor(),
    "c++": CppExecutor(),
    "rust": RustExecutor(),
}

PORT = 3333

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…