change base api url
This commit is contained in:
parent
18c95083c9
commit
ada7788516
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from ...services.chat_service import chat_service
|
||||||
from ...services.estimation_service import run_underwriting
|
from ...services.estimation_service import run_underwriting
|
||||||
from ...config import settings
|
from ...config import settings
|
||||||
|
|
||||||
router = APIRouter(prefix="/v1", tags=["v1"])
|
router = APIRouter()
|
||||||
|
|
||||||
@router.post("/insurance_chat", response_model=models.InsuranceChatResponse)
|
@router.post("/insurance_chat", response_model=models.InsuranceChatResponse)
|
||||||
async def insurance_chat(request: models.InsuranceChatRequest):
|
async def insurance_chat(request: models.InsuranceChatRequest):
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ from src.api import api_router as v1_router
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
app.include_router(v1_router, prefix="/api")
|
app.include_router(v1_router)
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue