KtorModule
abstract class KtorModule(val moduleInstallationPriority: Int = DEFAULT_MODULE_PRIORITY, val restrictToAppName: String? = null)
Content copied to clipboard
A Ktor module that will be automatically installed to a corresponding KtorApplication with a matching app name.
If you wish to add a controller (a module that only calls routing
and adds routes), consider using KtorController instead.
Constructors
Link copied to clipboard
fun KtorModule(moduleInstallationPriority: Int = DEFAULT_MODULE_PRIORITY, restrictToAppName: String? = null)
Content copied to clipboard
Types
Functions
Properties
Link copied to clipboard
The application name that this module should be installed in. This should correspond to the application name specified in KtorApplication.appName