Put in order · Vibe coding with Claude Code course · Module 14: Pinterest clone
Sorting: Processing the photo on the server
Put in order the steps of the route POST /api/visual-search:
Items to put in order
- extractFeatures computes the dominant colour
- file.size above MAX_IMAGE_BYTES gives 413
- request.formData() and a check that a file arrived (400)
- findSimilarPins and relatedTags assemble the response
- detectImageKind on the first 12 bytes gives 415 for a foreign type
You can check the correct answer by solving this task in the CodeWorlds game.