Skip to content
Discussion options

You must be logged in to vote

We use something like this

app.routes[:] = [routes for routes in app.routes if routes.path != '/home']

Which will remove the /home page from FastAPI.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Anindya088
Comment options

@falkoschindler
Comment options

Answer selected by Anindya088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants