Skip to content

Instantly share code, notes, and snippets.

@aqua30
Created October 31, 2021 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqua30/3bd47ece14cd8cb236ed4145b0776608 to your computer and use it in GitHub Desktop.
Save aqua30/3bd47ece14cd8cb236ed4145b0776608 to your computer and use it in GitHub Desktop.
Application class
fun main(args: Array<String>): Unit =
io.ktor.server.netty.EngineMain.main(args)
@Suppress("unused") // application.conf references the main function. This annotation prevents the IDE from marking it as unused.
fun Application.module() {
configureSerialization()
configureMonitoring()
registerDogsRoute()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment