From ab5c5f4fbcf579b58c0a8d47e38294cc39202d00 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 15 Jan 2026 09:54:29 +0100 Subject: [PATCH] api: support serving API behind a reverse proxy Co-Authored-by: iGor milhit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index e44bd51..af1095b 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,8 @@ app = FastAPI( title="Dough Calculator API", description="""Calculate bread ingredient proportions based on baker's percentages""", - version="1.0.0" + version="1.0.0", + root_path="/api" ) settings = Settings()