[DEV] try secure area

This commit is contained in:
Edouard DUPIN 2022-05-21 12:10:19 +02:00
parent f71b88a459
commit a958602dd2
2 changed files with 4 additions and 5 deletions

View File

@ -23,4 +23,3 @@ public class CORSFilter implements ContainerResponseFilter {
"GET, POST, PUT, DELETE, OPTIONS, HEAD");
}
}

View File

@ -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")