NestJS · Junior · Question 15 of 75

What is the role of a controller?

Explanation

Keep controllers thin: map the request to a service call and the result to a response.

Further reading

Problem with a question

NestJS · Junior · question 15

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz