Question · NestJS course · Module 2: Routing and Request Lifecycle
Controller Route Prefix
What does the argument passed to @Controller('tributes') define?
Answer options
- The prefix for all routes in this controller (e.g., /tributes)
- The controller file name
- The database name
- The type of returned data
Show the answer
Correct answer:
- The prefix for all routes in this controller (e.g., /tributes)