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: