const mixinafBedSheet::PodHandler

afBedSheet::PodHandler

(Service) - A Request Handler that maps URIs to file resources inside pods.

@Contribute { serviceType=Routes# }
static Void contributeRoutes(OrderedConfig conf) {
  ...
  conf.add(Route(`/pod/***`, PodHandler#service))
  ...
}

Now a request to /pod/icons/x256/flux.png should return just that!

service

Source

abstract File service(Uri remainingUri)

Returns a pod resource (as a File) as mapped from the given uri. Throws a HttpStatusErr 404 if not found.