0

Is that correctly to have multiple ServerEndpoints in web app? Like this:

@ServerEndpoint("/users")
public class UsersEndPoint{
    //some impl
}

@ServerEndpoint("/users/{userId}")
public class UserEndPoint{
    //some impl
}

@ServerEndpoint("/articles")
public class ArticleEndPoint{
    //some impl
}

Thanks

user3435425
  • 192
  • 1
  • 18

1 Answers1

0

Yes, it is.

(it would be better if you would try before asking..)

Pavel Bucek
  • 5,304
  • 27
  • 44