ApiModule

fun interface ApiModule

Interfejs dla modułów, które chcą dodać własne ścieżki do głównego serwera Ktor.

Każdy moduł feature-* może zaimplementować ten interfejs, aby zarejestrować swoje endpointy API.

Functions

Link copied to clipboard
abstract fun installRoutes(routing: Routing)

Instaluje trasy (routes) dla danego modułu w głównym obiekcie Routing Ktora.