ark406 commited on
Commit
f43e2c3
Β·
verified Β·
1 Parent(s): 0b55673

Deploy OpenEnv Submission

Browse files
Files changed (1) hide show
  1. app/main.py +8 -1
app/main.py CHANGED
@@ -36,10 +36,17 @@ app.add_middleware(
36
  sessions: dict = {}
37
 
38
 
 
 
39
  # ── Health / metadata ──────────────────────────────────────────────────────────
40
 
41
- @app.get("/")
42
  def root():
 
 
 
 
 
43
  return {
44
  "status": "ok",
45
  "name": "python-bug-fixer",
 
36
  sessions: dict = {}
37
 
38
 
39
+ from fastapi.responses import RedirectResponse
40
+
41
  # ── Health / metadata ──────────────────────────────────────────────────────────
42
 
43
+ @app.get("/", include_in_schema=False)
44
  def root():
45
+ # Redirect visitors to the nice-looking interactive Swagger UI documentation
46
+ return RedirectResponse(url="/docs")
47
+
48
+ @app.get("/metadata")
49
+ def metadata():
50
  return {
51
  "status": "ok",
52
  "name": "python-bug-fixer",