// Path: storage-api/src/main/java/worldwonders/storage/api/StorageService.java
// public interface StorageService extends Service {
//     ServiceCall<String, NotUsed, byte[]> downloadImage();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("storage-service").with(
//                 restCall(Method.GET, "/image/:url", downloadImage())
//                     .withResponseSerializer(new ByteArrayResponseSerializer())
//         ).withAutoAcl(true);
//     }
// }


import com.google.inject.AbstractModule;
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport;
import worldwonders.storage.api.StorageService;
package worldwonders.storage.impl;



public class StorageServiceModule extends AbstractModule implements ServiceGuiceSupport {
    @Override
    protected void configure() {
// Path: storage-api/src/main/java/worldwonders/storage/api/StorageService.java
// public interface StorageService extends Service {
//     ServiceCall<String, NotUsed, byte[]> downloadImage();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("storage-service").with(
//                 restCall(Method.GET, "/image/:url", downloadImage())
//                     .withResponseSerializer(new ByteArrayResponseSerializer())
//         ).withAutoAcl(true);
//     }
// }


// Path: storage-impl/src/main/java/worldwonders/storage/impl/StorageServiceModule.java
import com.google.inject.AbstractModule;
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport;
import worldwonders.storage.api.StorageService;

package worldwonders.storage.impl;



public class StorageServiceModule extends AbstractModule implements ServiceGuiceSupport {
    @Override
    protected void configure() {
        bindServices(serviceBinding(StorageService.class, StorageServiceImpl.class));