As your application grows, you’ll have hundreds or even thousands of individual web handlers, for different combinations of HTTP verbs and URL paths. The purpose of these handlers is to run different pieces of business logic. In this chapter, you’ll learn how to uncouple your business logic and web handlers from Ktor, so that you can use them in any context.
In later chapters, you’ll run your web handlers in many different environments, not just Ktor. Uncoupling your web handlers from Ktor ...