code: @RequestMapping(value = "/api/resource/{pluginName}/**", method = RequestMethod.GET)
      public
      @ResponseBody
      byte[] getResourceFile(Model model, @PathVariable String pluginName, HttpServletRequest request) throws Exception {
          try {
              String url = (String) request.getAttribute(
                      HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
              String fileName = url.replaceFirst("/api/resource/" + pluginName + "/", "");
  
              return PluginManager.getInstance().getResource(pluginName, fileName);
          } catch (Exception e) {
              throw new ResourceNotFoundException();
          }
      }
docs: Fetches a resource from a plugin jar with the given pluginName
  Returns 404 if the resource cannot be found