Put in order · Vibe coding with Claude Code course · Module 12: Medium clone
A text's way to publication
Put in order the way of a writer's text to the Latest tab:
Items to put in order
- The editor clicks Publish, and the browser sends POST /api/articles/[id]/publish
- The text appears in the Latest tab
- The writer submits a text to the publication
- The Publish button next to a submitted text is seen only by the owner and the editor
- The route checks the role on the server and saves the text as published
You can check the correct answer by solving this task in the CodeWorlds game.