Replies: 1 comment
-
@jtsuru i think it's just an oversight that we're trying to clean up and make more consistent. A recent PR just enabled a user to pass their own Line 206 in 656914e I think instead of just overwriting the if self.api is None:
self.api = FastAPI() Then the caller would be able to pass the app = rx.App(api=FastAPI(docs_url=None, redoc_url=None, openapi_url=None)) I think this would work for your use case. @jtsuru are you interested in submitting a PR for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to disable the auto-generated documentation and openapi.json in FastAPI.
Typically, this can be achieved by creating an instance of FastAPI as follows:
However, within the
reflex.app.App
class, the FastAPI instance is created as shown below, making it difficult to configure FastAPI in the same manner:Moreover,
does not work as expected.
While
currently seems to work as intended, it involves calling private methods.
Is there an official way to modify FastAPI settings, including the docs_url configuration?
Beta Was this translation helpful? Give feedback.
All reactions