public String sellItemTemplate(@PathVariable("itemTemplateId") String itemTemplateId, Principal principal) {
if (principal == null) {
return "redirect:/craft";
}
final String userName = principal.getName();
UserAuth userAuth = userService.getUser(userName);
if (userAuth != null) {
long userId = userAuth.getUserId();
service.userSellItem(userId, itemTemplateId);
}
return "redirect:/craft";
}