Open OlegSuperBro opened 3 weeks ago
I forgot to say. To check your own profile /userProfile with some conditional rendering can be used
Yeah, that happened because in the past we used /me for settings button and something, but after adding navbar we are no longer use settings button here.
Same for register and login btw.
On frontend it's litteraly just /userProfile but without "Add to contacts" button It can be removed or replaced as "Page settings" or smth. For example move status/pronouns to it instead of settings
On backend there are also only one difference: userProfileByUsername check if user exists and me doesn't. /me endpoint can be removed or merged to userProfileByUsername (if no data provided send user data who requested it)