Created
June 28, 2019 19:15
-
-
Save recursivecodes/c843533f52144fb6a7b1552107666a73 to your computer and use it in GitHub Desktop.
UserApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package codes.recursive.cnms.user; | |
import java.util.Set; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.ws.rs.ApplicationPath; | |
import javax.ws.rs.core.Application; | |
import io.helidon.common.CollectionsHelper; | |
import org.glassfish.jersey.jackson.JacksonFeature; | |
/** | |
* Simple Application that managers users. | |
*/ | |
@ApplicationScoped | |
@ApplicationPath("/") | |
public class UserApplication extends Application { | |
@Override | |
public Set<Class<?>> getClasses() { | |
return CollectionsHelper.setOf( | |
UserResource.class, | |
JacksonFeature.class | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment