Skip to content

Cannot define new DELETE /users/me endpoint #444

Discussion options

You must be logged in to vote

You're right, the superuser route DELETE /{id} is taking precedence there.

I've played around a bit and found out that if we suffix the superuser routes with the convertor:uuid (a Starlette feature not documented in FastAPI), it lets pass /me route that would be defined after.

Sounds a quick, easy and relevant fix. I'll implement this quickly!

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@frankie567
Comment options

@SnoozeFreddo
Comment options

@bkis
Comment options

@SnoozeFreddo
Comment options

@bkis
Comment options

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