@RestController
@RequestMapping("webhook")
public class HookController {
@Autowired
private HookService hookService;
@PutMapping("create")
public ResponseEntity configHook(){
JSONObject response = this.hookService.configHook();
return ResponseEntity.ok()
.contentType(MediaType.APPLICATION_JSON)
.body(response.toString());
}