Implementation and sample of Ktor endpoints. An endpoint definies the url, httpMethod, input type and output type, and can be used in both client and server implementations, creating a type-safed communication.
You can check the blog post for more info: