em.response(Resource.class),
"PUT", BASE + "/<rid>",
rc -> payload -> updateResource(arg("rid", rc), payload))
)
.map(r -> r.withMiddleware(Middleware::syncToAsync))
<BUG>.map(r -> r.withPrefix(Api.Version.V1.prefix()));
}</BUG>
private ResourcesPayload getResources() {
try {
return ResourcesPayload.create(storage.resources());

em.response(Resource.class),
"PUT", BASE + "/<rid>",
rc -> payload -> updateResource(arg("rid", rc), payload))
)
.map(r -> r.withMiddleware(Middleware::syncToAsync))
.collect(toList());
return Api.prefixRoutes(routes, V1);
}
private ResourcesPayload getResources() {
try {
return ResourcesPayload.create(storage.resources());
