sttp.tapir.static
Type members
Classlikes
- Value parameters:
- defaultFile
path segments (relative to the system path from which files are read) of the file to return in case the one requested by the user isn't found. This is useful for SPA apps, where the same main application file needs to be returned regardless of the path.
- fileFilter
A file will be exposed only if this function returns
true
.
- Companion:
- object
- Value parameters:
- defaultResource
path segments (relative to the resource prefix from which resources are read) of the resource to return in case the one requested by the user isn't found. This is useful for SPA apps, where the same main application resource needs to be returned regardless of the path.
- resourceFilter
A resource will be exposed only if this function returns
true
.
- Companion:
- object
Static content endpoints, including files and resources.
Static content endpoints, including files and resources.