Put in order · Vibe coding with Claude Code course · Module 13: Twitch clone

Order: the route POST /api/clips

Arrange the steps of the route that saves a clip:

Items to put in order

  • Save the clip and answer 201
  • Find the recording by vodId, otherwise answer 404
  • Compute the range with clipRange and turn null into 400
  • Read the request body: request.json() with .catch

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