Reuse or Deactivate delete /users/{user_id} and how to protect resources #606
Replies: 3 comments 1 reply
-
users_router = fastapi_users.get_users_router()
users_router.routes = [route for route in users_router.routes if route.name != "delete_user"]
app.include_router(users_router, prefix="/users", tags=["users"])
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
migeruj
-
Forgot to close. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
-
Note: users_router.routes = [route for route in users_router.routes if route.name != "users:delete_user"] |
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
-
Hi guys I am experimenting with fastapi-users. But I have some questions about the user's endpoint.
I think that's all!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions