staticFolder

fun Application.staticFolder(path: String, folder: String): Application

Configures static file serving for a specified path and folder.

Parameters

path

The URL path that will serve the files.

folder

The folder in the server where the files are located.