fix: correct Streamlit progress values and API docs behind /v1 prefix
This commit is contained in:
4
api.py
4
api.py
@@ -13,6 +13,7 @@ Uso:
|
||||
"""
|
||||
|
||||
import io
|
||||
import os
|
||||
import zipfile
|
||||
from typing import List
|
||||
|
||||
@@ -31,6 +32,9 @@ app = FastAPI(
|
||||
title=API_TITLE,
|
||||
version=API_VERSION,
|
||||
description=API_DESCRIPTION,
|
||||
# A API é publicada externamente atrás de /v1 pelo Traefik.
|
||||
# root_path corrige as URLs do Swagger/ReDoc/OpenAPI nesse cenário.
|
||||
root_path=os.getenv("API_ROOT_PATH", ""),
|
||||
docs_url="/docs",
|
||||
redoc_url="/redoc",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user