this.storage = Objects.requireNonNull(storage);
}
public Stream<? extends Route<? extends AsyncHandler<? extends Response<ByteString>>>> routes() {
final EntityMiddleware em =
EntityMiddleware.forCodec(JacksonEntityCodec.forMapper(Middlewares.OBJECT_MAPPER));
<BUG>return Stream.of(
Route.with(</BUG>
em.serializerDirect(ResourcesPayload.class),
"GET", BASE,
rc -> getResources()),

this.storage = Objects.requireNonNull(storage);
}
public Stream<? extends Route<? extends AsyncHandler<? extends Response<ByteString>>>> routes() {
final EntityMiddleware em =
EntityMiddleware.forCodec(JacksonEntityCodec.forMapper(Middlewares.OBJECT_MAPPER));
final List<Route<AsyncHandler<Response<ByteString>>>> routes = Stream.of(
Route.with(
em.serializerDirect(ResourcesPayload.class),
"GET", BASE,
rc -> getResources()),
