mainRoute

fun Route.mainRoute()

Route of type GET that sends the index page to the client. The HTTP Response sent to the client can be of type:

  • 200 (OK) the index.html resource is correctly sent to the client;

  • 404 (Not Found) the index.html resource was not found.