Question · NestJS course · Module 1: NestJS Basics
Role of the Controller in NestJS
What is the main role of the Controller in NestJS architecture?
Answer options
- Storing data in the database
- Managing CSS styles
- Compiling TypeScript code
- Handling HTTP requests and returning responses
Show the answer
Correct answer:
- Handling HTTP requests and returning responses