net.aequologica.neo.serioulizer.jaxrs.service.Application Maven / Gradle / Ivy
The newest version!
package net.aequologica.neo.serioulizer.jaxrs.service;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.logging.LoggingFeature;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
@ApplicationPath("api/serioulizer")
public class Application extends ResourceConfig {
public Application() {
register(LoggingFeature.class);
register(JacksonJsonProvider.class);
register(MultiPartFeature.class);
register(Resource.class);
}
}