const mixinafBedSheet::PodHandler
afBedSheet::PodHandler
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
abstract File service(Uri remainingUri := ``)
Returns File pod resource as mapped from the given uri. Throws a HttpStatusErr 404 if not found.