tcooper-xx commited on
Commit
ae4852a
·
1 Parent(s): be470bb

Move API docs to /api/docs to avoid static mount conflict

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -0
README.md CHANGED
@@ -53,7 +53,7 @@ file=<image>
53
  }
54
  ```
55
 
56
- Full interactive docs available at `/docs`.
57
 
58
  ## Configuration (Space Secrets)
59
 
 
53
  }
54
  ```
55
 
56
+ Full interactive docs available at `/api/docs`.
57
 
58
  ## Configuration (Space Secrets)
59
 
app.py CHANGED
@@ -310,6 +310,8 @@ app = FastAPI(
310
  description = "Fish detection, segmentation, and species classification.",
311
  version = "1.0.0",
312
  lifespan = lifespan,
 
 
313
  )
314
 
315
  app.add_middleware(
 
310
  description = "Fish detection, segmentation, and species classification.",
311
  version = "1.0.0",
312
  lifespan = lifespan,
313
+ docs_url = "/api/docs",
314
+ redoc_url = "/api/redoc",
315
  )
316
 
317
  app.add_middleware(