NestJS · Junior · Question 57 of 75

What does app.setGlobalPrefix('api') do?

Explanation

You can exclude some routes, such as health checks, from the prefix with the exclude option.

Further reading

Problem with a question

NestJS · Junior · question 57

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