// Path: server/src/main/java/io/klerch/morse/service/EncodeService.java
// @Component
// @Path("/encode")
// public class EncodeService {
//     @Autowired
//     private ImageUtils imageUtils;
// 
//     @Autowired
//     private S3Utils s3Utils;
// 
//     @GET
//     @Produces(MediaType.APPLICATION_JSON)
//     public MorseCode getMorse(@QueryParam("text") String text, @QueryParam("wpm") Integer wpm, @QueryParam("fw") Integer fw) {
//         return new MorseCode(s3Utils, imageUtils).load(text, wpm, fw != null ? fw : wpm);
//     }
// }


import io.klerch.morse.service.EncodeService;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;
package io.klerch.morse.config;


@Component
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
// Path: server/src/main/java/io/klerch/morse/service/EncodeService.java
// @Component
// @Path("/encode")
// public class EncodeService {
//     @Autowired
//     private ImageUtils imageUtils;
// 
//     @Autowired
//     private S3Utils s3Utils;
// 
//     @GET
//     @Produces(MediaType.APPLICATION_JSON)
//     public MorseCode getMorse(@QueryParam("text") String text, @QueryParam("wpm") Integer wpm, @QueryParam("fw") Integer fw) {
//         return new MorseCode(s3Utils, imageUtils).load(text, wpm, fw != null ? fw : wpm);
//     }
// }


// Path: server/src/main/java/io/klerch/morse/config/JerseyConfig.java
import io.klerch.morse.service.EncodeService;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

package io.klerch.morse.config;


@Component
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        register(EncodeService.class);