Skip to content

Make user router flexible enough to pick few routes only #1466

@jd-solanki

Description

@jd-solanki

Hi 👋🏻

I was using fastapi users in one of my project and tried my best to customize according to requirement however I now come to deadend where fastapi_users.get_users_router includes multiple routes and we can't pick from one of the route or exlucde some of them.

In my case, I would like to change dependency of user patch route PATCH /users/{id} to change from superuser to authenticated user but I can't change that and also can't exclude that specific route while including router.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions