return "stockpacks";
}
@RequestMapping("/pack/download")
public void downloadPack(@RequestParam long id, HttpServletResponse response) throws IOException {
PiecePack pack = packService.getPack(id);
if (pack != null) {
response.setContentType("application/zip");
response.setHeader("Content-Disposition", "attachment; filename=" + pack.getName().replace(' ', '_').replace('/', '_') + ".zip;");
packService.download(id, response.getOutputStream());
}
}