File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,6 +164,12 @@ class ErrorResponse(BaseModel):
164164# ── Endpoints ─────────────────────────────────────────────────────────────────
165165
166166
167+ @app .get ("/" , include_in_schema = False )
168+ async def root ():
169+ from fastapi .responses import RedirectResponse
170+ return RedirectResponse (url = "/docs" )
171+
172+
167173@app .get ("/health" , response_model = HealthResponse )
168174async def health ():
169175 store = _get_store ()
Original file line number Diff line number Diff line change 66def main () -> None :
77 import uvicorn
88
9- host = os .environ .get ("DOCCHAT_HOST" , "0.0.0.0 " )
9+ host = os .environ .get ("DOCCHAT_HOST" , ":: " )
1010 # Railway (và các Cloud PaaS khác) tự động cấp phát cổng qua biến PORT
1111 port_str = os .environ .get ("PORT" ) or os .environ .get ("DOCCHAT_PORT" , "8000" )
1212 port = int (port_str )
You can’t perform that action at this time.
0 commit comments