by switch007 · 5y ago · 0 comments
Why not add another URL? /getProfileByUsername?
Nothing stops you building another layer of endpoints to service your frontend.
> Nothing stops you building another layer of endpoints to service your frontend.
They could've added a new endpoint for that specific usecase but I'm assuming they've simplified their actual needs to this one example.