staticResources

fun Application.staticResources(path: String, resourcePackage: String): Application

Configures static resources serving from a specified resource package.

Parameters

path

The URL path that will serve the resources.

resourcePackage

The package from which the resources will be served.