CodeZettaInterview Hub

NestJS · Controllers · Fresh / Intern · Concept

What is a Nest controller responsible for?

Short Interview Answer

HTTP/transport mapping: routes, DTO binding, status codes — not business rules.

Detailed Explanation

Keep controllers thin; delegate to providers/services. Decorators declare method, path, pipes, and guards.

Did you know this answer?