Skip to content
Snippets Groups Projects
Commit 40c9a23b authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added cors filter

parent 2c56737e
No related branches found
No related tags found
2 merge requests!5Develop,!4Ipm decisions
......@@ -18,5 +18,6 @@ Any value defined here will override the pom.xml file value but is only applicab
<netbeans.hint.license>nibio_open_source_license.ftl</netbeans.hint.license>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>WildFly</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.7-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
<netbeans.hint.jdkPlatform>JDK_1.8_SUN</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
......@@ -127,8 +127,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>10</source>
<target>10</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
......
......@@ -19,10 +19,12 @@
package no.nibio.vips.core;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/**
* Responsible for adding REST resources
* @copyright 2013-2018 {@link http://www.nibio.no NIBIO}
......@@ -49,13 +51,7 @@ public class VIPSCoreApplication extends Application
resources.add(no.nibio.vips.core.service.ModelResourceImpl.class);
}
/**
* Do not modify addRestResourceClasses() method.
* It is automatically re-generated by NetBeans REST support to populate
* given list with all resources defined in the project.
*/
private void addRestResourceClasses(Set<Class<?>> resources) {
resources.add(no.nibio.vips.core.config.JacksonConfig.class);
resources.add(no.nibio.vips.core.service.ModelResourceImpl.class);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment