File size: 700 Bytes
bd67155 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | from __future__ import annotations
from fastapi import FastAPI
app = FastAPI(
title="SupportOpsEnv Server",
description="Minimal server entry point for OpenEnv validation and deployment hooks.",
version="0.1.0",
)
@app.get("/")
def root() -> dict[str, str]:
return {
"name": "support-ops-env",
"status": "ok",
"message": "SupportOpsEnv server entry point is available.",
}
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "healthy"}
def main(host: str = "0.0.0.0", port: int = 8000) -> None:
import uvicorn
uvicorn.run(app, host=host, port=port)
def uv_main():
return app
if __name__ == "__main__":
main()
|