Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: A rule for API routes
The rules concern only the routes in app/api of Treasure Map. Where do you write them so that Claude has them in context only when working with those files?
Answer options
- At the end of CLAUDE.md, under the heading # API routes
- In CLAUDE.local.md, because it loads last
- In .claude/settings.json, in the permissions section
- In .claude/rules/api.md with the header paths: app/api/**/*.ts
You can check the correct answer by solving this task in the CodeWorlds game.