From f57997246655007745c88e4dd4deeee5a0aa3776 Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Wed, 8 Oct 2025 13:06:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Allow=20overriding=20base=20pref?= =?UTF-8?q?ix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/core/runtime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ohmyapi/core/runtime.py b/src/ohmyapi/core/runtime.py index 9a920f8..0b110f8 100644 --- a/src/ohmyapi/core/runtime.py +++ b/src/ohmyapi/core/runtime.py @@ -95,6 +95,7 @@ class Project: Attach project middlewares and routes and event handlers to given FastAPI instance. """ + app.router.prefix = getattr(self.settings, "API_PREFIX", "") # Attach project middlewares and routes. for app_name, app_def in self._apps.items(): for middleware, kwargs in app_def.middlewares: