[DEV] error path

This commit is contained in:
Edouard DUPIN 2022-05-31 23:59:23 +02:00
parent 93f35360b3
commit ca55b01e14
2 changed files with 13 additions and 13 deletions

View File

@ -86,16 +86,16 @@ public class Front {
} }
@GET @GET
@Path("{baseA}/assets/images/{baseB}") @Path("assets/images/{baseB}")
@PermitAll() @PermitAll()
public Response retrive2(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { public Response retrive2(@PathParam("baseB") String baseB) throws Exception {
return retrive(baseA + File.separator + "assets" + File.separator + "images" + File.separator + baseB); return retrive("assets" + File.separator + "images" + File.separator + baseB);
} }
@GET @GET
@Path("{baseA}/assets/js_3rd_party/{baseB}") @Path("assets/js_3rd_party/{baseB}")
@PermitAll() @PermitAll()
public Response retrive3(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { public Response retrive3(@PathParam("baseB") String baseB) throws Exception {
return retrive(baseA + File.separator + "assets" + File.separator + "js_3rd_party" + File.separator + baseB); return retrive("assets" + File.separator + "js_3rd_party" + File.separator + baseB);
} }
} }

View File

@ -88,16 +88,16 @@ public class FrontSSO {
} }
@GET @GET
@Path("{baseA}/assets/images/{baseB}") @Path("assets/images/{baseB}")
@PermitAll() @PermitAll()
public Response retrive2(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { public Response retrive2(@PathParam("baseB") String baseB) throws Exception {
return retrive(baseA + File.separator + "assets" + File.separator + "images" + File.separator + baseB); return retrive("assets" + File.separator + "images" + File.separator + baseB);
} }
@GET @GET
@Path("{baseA}/assets/js_3rd_party/{baseB}") @Path("assets/js_3rd_party/{baseB}")
@PermitAll() @PermitAll()
public Response retrive3(@PathParam("baseA") String baseA, @PathParam("baseB") String baseB) throws Exception { public Response retrive3(@PathParam("baseB") String baseB) throws Exception {
return retrive(baseA + File.separator + "assets" + File.separator + "js_3rd_party" + File.separator + baseB); return retrive("assets" + File.separator + "js_3rd_party" + File.separator + baseB);
} }
} }