You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs of endpoints that are mounted at the root path "/" redirect to the "/docs/" instead of showing their corresponding docs.
Reproduce steps
Let's assume we have the following app:
fromflamaimportFlamafrommlopsimportappsapp=Flama(
title="MLOps API",
version="1.0.0",
description="Serving ML/API using Flama 🔥",
docs="/docs/",
)
@app.get("/")defhome():
""" tags: - Home summary: Returns warming message description: The function returns a hello message """return"Hello 🔥"app.mount("/churn/", app=apps.churn, name="churn")
Then, when navigating the /docs/ endpoint, if we click to see the endpoint mounted at "/" it redirects to "/docs/". However, if we change the get to the route "/home/", for instance, this does not happen anymore.
Schema library
None
Models library
None
Error logs
No response
The text was updated successfully, but these errors were encountered:
Summary
Docs of endpoints that are mounted at the root path "/" redirect to the "/docs/" instead of showing their corresponding docs.
Reproduce steps
Let's assume we have the following app:
Then, when navigating the
/docs/
endpoint, if we click to see the endpoint mounted at "/" it redirects to "/docs/". However, if we change the get to the route "/home/", for instance, this does not happen anymore.Schema library
None
Models library
None
Error logs
No response
The text was updated successfully, but these errors were encountered: