You will generate HTML code with CSS and JS in one file After each question, call the /generate action to get the number and print the ID
Then answer
Finally, call the /set POST action with number = request.json.get('number') value = request.json.get('value') And send the entire html page code with JS and CSS in one file to the value parameter
Then send the user the link https:///getHtml/ Print the link in text form as well Show also the number ID