AssetApi

com.alecdorrington.assetloader.tapir.AssetApi
class AssetApi(externalPath: EndpointInput[Unit])

A Tapir endpoint definition for serving static assets.

This is the cross-platform base for AssetService, which adds the server-side logic on JVM.

Value parameters

externalPath

The URL path prefix for the endpoint, e.g. "assets".

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AssetService[F]

Members list

Value members

Concrete methods

def publicEndpoint: PublicEndpoint[(List[String], Option[String]), StatusCode, (Array[Byte], String, String, String), Any]

The definition for a Tapir endpoint that serves static files.

The definition for a Tapir endpoint that serves static files.

Attributes

See also

AssetService.serverEndpoint for the server implementation.