Raumplan im Client-Cache
This commit is contained in:
@@ -8,6 +8,7 @@ import io.quarkus.qute.Template;
|
||||
import io.quarkus.qute.TemplateInstance;
|
||||
import io.quarkus.security.identity.SecurityIdentity;
|
||||
import org.jboss.logging.Logger;
|
||||
import org.jboss.resteasy.annotations.cache.Cache;
|
||||
import org.jboss.resteasy.annotations.providers.multipart.MultipartForm;
|
||||
|
||||
import javax.annotation.security.RolesAllowed;
|
||||
@@ -68,6 +69,7 @@ public class RoomResource {
|
||||
|
||||
@GET
|
||||
@Path("/plan")
|
||||
@Cache(maxAge = 43200) // 12H
|
||||
@Produces("image/*")
|
||||
public Response getImage(@PathParam("image") String image) {
|
||||
byte[] roomplan = imageService.getRoomplan();
|
||||
|
||||
Reference in New Issue
Block a user