Answer the question
In order to leave comments, you need to log in
How to display a profile by going to /username?
Hello. Pet project, Nuxt + Golang. An analogue of Twitter'a.
The essence of the problem: it is necessary that a person who has never been on the site at all, when going to website.com/username, receives the profile of this person.
Now the request is configured on the back so that you can get data about the user both by username and by ID.
Then, when a person visits the /username page, I can take this username and make a request to get the profile of this user. OK.
And now the question is: How and where can I check that a person wants to get into the user's profile, and not, for example, to the 'settings' page?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question