/*
 * Jooby https://jooby.io
 * Apache License Version 2.0 https://jooby.io/LICENSE.txt
 * Copyright 2014 Edgar Espina
 */
package issues.i2594;

import io.jooby.annotation.GET;
import io.jooby.annotation.Path;
import jakarta.inject.Inject;

@Path("/")
public class ControllerV12594 {

  @Inject private WelcomeService2594 welcomeService;

  @GET("/welcome")
  public String sayHi() {
    return welcomeService.welcome("v1");
  }

  @GET("/should-not-be-duplicated-under-v2")
  public String demo() {
    return welcomeService.welcome("v1");
  }
}
