@@ -0,0 +1,3708 @@
+package com.coding4people.mosquitoreport.api;%0A%0Aimport javax.ws.rs.ext.MessageBodyReader;%0Aimport javax.ws.rs.ext.MessageBodyWriter;%0A%0Aimport org.glassfish.jersey.CommonProperties;%0Aimport org.glassfish.jersey.media.multipart.MultiPartFeature;%0Aimport org.glassfish.jersey.server.ResourceConfig;%0A%0Aimport com.coding4people.mosquitoreport.api.buckets.BucketBinder;%0Aimport com.coding4people.mosquitoreport.api.controllers.AuthEmailController;%0Aimport com.coding4people.mosquitoreport.api.controllers.AuthFacebookController;%0Aimport com.coding4people.mosquitoreport.api.controllers.FocusController;%0Aimport com.coding4people.mosquitoreport.api.controllers.HealthCheckController;%0Aimport com.coding4people.mosquitoreport.api.controllers.PictureController;%0Aimport com.coding4people.mosquitoreport.api.controllers.PostFocusController;%0Aimport com.coding4people.mosquitoreport.api.controllers.ProfileController;%0Aimport com.coding4people.mosquitoreport.api.controllers.ResetPasswordController;%0Aimport com.coding4people.mosquitoreport.api.controllers.SignUpController;%0Aimport com.coding4people.mosquitoreport.api.controllers.ThumbsUpController;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.BadRequestExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.ForbiddenExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.InternalServerErrorExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.JsonMappingExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.JsonParseExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.NotFoundExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.exceptionmappers.ValidationExceptionMapper;%0Aimport com.coding4people.mosquitoreport.api.factories.FactoryBinder;%0Aimport com.coding4people.mosquitoreport.api.filters.CORSFilter;%0Aimport com.coding4people.mosquitoreport.api.indexers.IndexerBinder;%0Aimport com.coding4people.mosquitoreport.api.repositories.RepositoryBinder;%0Aimport com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;%0A%0Apublic class Config extends ResourceConfig %7B%0A    public Config configureControllers() %7B%0A        register(AuthEmailController.class);%0A        register(AuthFacebookController.class);%0A        register(FocusController.class);%0A        register(HealthCheckController.class);%0A        register(PictureController.class);%0A        register(PostFocusController.class);%0A        register(ProfileController.class);%0A        register(ResetPasswordController.class);%0A        register(SignUpController.class);%0A        register(ThumbsUpController.class);%0A%0A        return this;%0A    %7D%0A%0A    public Config configureExceptionMappers() %7B%0A        register(BadRequestExceptionMapper.class);%0A        register(ForbiddenExceptionMapper.class);%0A        register(InternalServerErrorExceptionMapper.class);%0A        register(JsonMappingExceptionMapper.class);%0A        register(JsonParseExceptionMapper.class);%0A        register(NotFoundExceptionMapper.class);%0A        register(ValidationExceptionMapper.class);%0A%0A        return this;%0A    %7D%0A%0A    public Config configureFilters() %7B%0A        register(CORSFilter.class);%0A%0A        return this;%0A    %7D%0A%0A    public Config configureBinders() %7B%0A        register(new BucketBinder());%0A        register(new FactoryBinder());%0A        register(new IndexerBinder());%0A        register(new RepositoryBinder());%0A%0A        return this;%0A    %7D%0A%0A    public Config configureFramework() %7B%0A        property(CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLE, true);%0A        register(JacksonJaxbJsonProvider.class, MessageBodyReader.class, MessageBodyWriter.class);%0A        register(MultiPartFeature.class);%0A%0A        return this;%0A    %7D%0A%7D%0A

Create config class