Put in order · Vibe coding with Claude Code course · Module 7: LinkedIn clone

Sorting: Endorsing a skill on the server

Arrange what happens after clicking + Endorse on someone else's profile:

Items to put in order

  • The server appends the handle to endorsedBy and saves the profile
  • The server asks getCurrentUser() and rejects your own profile and a second endorsement
  • The form sends the endorseSkill action with the profile handle and the skill id
  • revalidatePath refreshes the page, and the button shows Endorsed

You can check the correct answer by solving this task in the CodeWorlds game.