Connect the textarea in the sanbox to submit the code as a POST request to back end. Set up route in back end to catch that code.