[DEV] try secure area
This commit is contained in:
parent
f71b88a459
commit
a958602dd2
@ -23,4 +23,3 @@ public class CORSFilter implements ContainerResponseFilter {
|
||||
"GET, POST, PUT, DELETE, OPTIONS, HEAD");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ public class DataResource {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Secured
|
||||
//@Secured
|
||||
@POST
|
||||
@Path("/upload/")
|
||||
@Consumes({MediaType.MULTIPART_FORM_DATA})
|
||||
@ -348,7 +348,7 @@ public class DataResource {
|
||||
//return null;
|
||||
}
|
||||
|
||||
@Secured
|
||||
//@Secured
|
||||
@GET
|
||||
@Path("{id}")
|
||||
@RolesAllowed("USER")
|
||||
@ -367,7 +367,7 @@ public class DataResource {
|
||||
}
|
||||
return buildStream(ConfigVariable.getMediaDataFolder() + File.separator + id + File.separator + "data", range, value.mimeType);
|
||||
}
|
||||
@Secured
|
||||
//@Secured
|
||||
@GET
|
||||
@Path("thumbnail/{id}")
|
||||
@RolesAllowed("USER")
|
||||
@ -414,7 +414,7 @@ public class DataResource {
|
||||
}
|
||||
return buildStream(filePathName, range, value.mimeType);
|
||||
}
|
||||
@Secured
|
||||
//@Secured
|
||||
@GET
|
||||
@Path("{id}/{name}")
|
||||
@RolesAllowed("USER")
|
||||
|
Loading…
Reference in New Issue
Block a user