Commit 923be4c1 authored by Michael Ritter's avatar Michael Ritter
Browse files

Update security constraints

parent 0910edca
......@@ -39,6 +39,8 @@ import java.util.List;
/**
* REST Service for adding and viewing collections
*
* todo: we should update most of the endpoints to be /collection/<id>/action
*
* @author shake
*/
@Path("collection")
......
......@@ -43,7 +43,7 @@ public class CompareController {
public CompareResponse compare(@PathParam("id") Long id, CompareRequest request) {
if (request == null) {
request = new CompareRequest();
request.setComparisons(ImmutableList.<CompareFile>of());
request.setComparisons(ImmutableList.of());
}
EntityManager em = PersistUtil.getEntityManager();
......
......@@ -773,6 +773,7 @@
<security-constraint>
<web-resource-collection>
<web-resource-name>Rest Audit</web-resource-name>
<url-pattern>/rest/compare/*</url-pattern>
<url-pattern>/rest/collection/audit/*</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
......@@ -785,7 +786,7 @@
<web-resource-collection>
<web-resource-name>Rest Status</web-resource-name>
<url-pattern>/rest/groups</url-pattern>
<url-pattern>/rest/collections/by-group/*</url-pattern>
<url-pattern>/rest/collections/*</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment